adding ErrorCode Generation to JavaByteCodeGenerator