[ http://issues.apache.org/jira/browse/XALANJ-1122?page=all ]
Henry Zongaro reopened XALANJ-1122:
-----------------------------------
Assign To: (was: Xalan Developers Mailing List)
This is a valid problem and shouldn't have been closed.
> Branch target offset too large for short
> ----------------------------------------
>
> Key: XALANJ-1122
> URL: http://issues.apache.org/jira/browse/XALANJ-1122
> Project: XalanJ2
> Type: Bug
> Components: XSLTC
> 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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]