DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11432>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11432

Branch target offset too large for short

           Summary: Branch target offset too large for short
           Product: XalanJ2
           Version: 2.3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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).

Reply via email to