[ https://issues.apache.org/jira/browse/XALANJ-1122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Kesselman reopened XALANJ-1122: ----------------------------------- Assignee: Joe Kesselman > Branch target offset too large for short > ---------------------------------------- > > Key: XALANJ-1122 > URL: https://issues.apache.org/jira/browse/XALANJ-1122 > Project: XalanJ2 > Issue Type: Bug > Components: XSLTC > Affects Versions: 2.3 > Environment: Operating System: All > Platform: All > Reporter: Clare Myers > Assignee: Joe Kesselman > > With certain xsl (which I cannot divulge) when I try to compile using java > org.apache.xalan.xsltc.cmdline.Compile stylesheet.xsl I get the following > error: > Branch target offset too large for short > According to BCEL it is an xsltc problem: > Q: (Typically for users of Xalan (XSLTC)) I'm getting > ... > ClassGenException: Branch target offset too large for short > when compiling large files. > A: The answer lies in internal limitations of the JVM, branch instruction > like > goto can not address offsets larger than a short integer, i.e. offsets >= > 32767. > The solution is to split the branch into in intermediate hops, which the > XSLTC > obviously doesn't take care off. (In fact you could replace gotos with the > goto_w instruction, but this wouldn't help in the other cases). -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org For additional commands, e-mail: dev-h...@xalan.apache.org