Skip to content

Constant pool has grown past JVM limit of 0xFFFF #218

@WZRPW

Description

@WZRPW

I use Janino to compile a generated Java code which has a large number of lines of code,

##################################
ClassBodyEvaluator evaluator = new ClassBodyEvaluator();
.....
evaluator.cook(codeFile, codeBody);
##################################

I got this compilation error at runtime:
Caused by: org.codehaus.commons.compiler.InternalCompilerException: Compiling “myTestCode” in File '/tmp/myTestCode.java', Line 1, Column 1: File '/tmp/myTestCode.java', Line 8559, Column 265: Compiling "myTestCode(param1, param2, param3, param4)”: File '/tmp/myTestCode.java', Line 8653, Column 5: org.codehaus.commons.compiler.InternalCompilerException: File '/tmp/myTestCode.java', Line 8653, Column 5: Compiling "init()": Constant pool for class myTestCode has grown past JVM limit of 0xFFFF

Could you help me understand what this exception means?
Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions