[ https://issues.apache.org/jira/browse/XALANJ-1122 ]


    Joe Kesselman deleted comment on XALANJ-1122:
    ---------------------------------------

was (Author: JIRAUSER285361):
Lacking input, move to close as presumed duplicate of XALANJ-1324.

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

Reply via email to