[ http://issues.apache.org/jira/browse/XALANJ-2064?page=history ]
Henry Zongaro resolved XALANJ-2064:
-----------------------------------
Resolution: Duplicate
Hi, Antony.
This is a known limitation with XSLTC, previously reported in [1]. A few
months ago I started looking at a general fix to this problem, and will
continue to work on it during lulls in my other work.
In the meanwhile, you can work around the problem by breaking up your templates
into smaller templates. In your example, I moved the fo:table-body that begins
at line 403 and moved it into a named template that I called at that point, and
the stylesheet successfully compiled.
[1] http://issues.apache.org/jira/browse/XALANJ-1324
> Branch target offset too large for short while processing stylesheet
> --------------------------------------------------------------------
>
> Key: XALANJ-2064
> URL: http://issues.apache.org/jira/browse/XALANJ-2064
> Project: XalanJ2
> Type: Bug
> Components: transformation
> Versions: 2.6
> Environment: XP/Xalan 2.6.0/j2sdk1.4.2_06
> Reporter: Antony Walker
> Attachments: TradeCollection.xsl
>
> Hi,
> While processing stylesheet I receive the below exception when using 2.6.0.
> Note, when using 2.4.1 it works without issue.
> It is falling over in the bcel code. The xsl used is only 831 lines long.
> look forward to your response.
> com.sun.org.apache.bcel.internal.generic.ClassGenException: Branch target
> offset too large for short
> at
> com.sun.org.apache.bcel.internal.generic.BranchInstruction.dump(BranchInstruction.java:99)
> at
> com.sun.org.apache.bcel.internal.generic.InstructionList.getByteCode(InstructionList.java:980)
> at
> com.sun.org.apache.bcel.internal.generic.MethodGen.getMethod(MethodGen.java:587)
> at
> com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileNamedTemplate(Mode.java:580)
> at
> com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileTemplates(Mode.java:590)
> at
> com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:842)
> at
> com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:615)
> at
> com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.translate(Stylesheet.java:730)
> at
> com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:335)
> at
> com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
> at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:720)
> at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:548)
> Kind Regards
> Antony
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]