Menu

#7 Branch offset out of range error

open
General (7)
5
2012-12-10
2011-01-27
No

I get the following error when trying to compile a large source file. Is there a limit to the size
source file Janino can handle. javac has no problem
with the class:

java.lang.RuntimeException: Branch offset out of range
at
net.janino.CodeContext$Branch.relocate(CodeContext.java:658)
at net.janino.CodeContext.relocate(CodeContext.java:549)
at
net.janino.Java$FunctionDeclarator.compile(Java.java:1656)
at net.janino.Java$ClassDeclaration.compile(Java.java:794)
at net.janino.Java$CompilationUnit.compile(Java.java:361)
at net.janino.Java$CompilationUnit.compile(Java.java:350)

This is a duplicate of the 1037947, but i would like to know the resolution for this?
How can we avoid this error?

Discussion


Log in to post a comment.

MongoDB Logo MongoDB