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=5194>. 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=5194 xsltc tries to create a instruction with negative index Summary: xsltc tries to create a instruction with negative index Product: XalanJ2 Version: 2.2.x Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Xalan-Xsltc AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The error below was sent of to the author of BCEL and he said this: 'This seems to be a bug of XSLTC, since it tries to create a instruction with a negative index.' I have the xsl file if anyone wants to look at it.. <original message start> I am getting the error (see below) when calling the following command: java org.apache.xalan.xsltc.compiler.XSLTC -x generic_inc.xsl Attached is the XSL file I am trying to compile. I am using Xalan-2.2 -D13 and BCEL 4.4.1 from the sourceforge site with the following classpath: set CLASSPATH=D:\tmp\xalan-j_2_2_D13-bin\xalan-j_2_2_D13\bin\xsltc.jar;D:\tmp\x alan-j_2_2_D13-bin\xalan-j_2_2_D13\bin\runtime.jar;D:\tmp\xalan-j_2_2_D13- bin\xalan-j_2_2_D13\bin\xml-apis.jar;D:\tmp\xa lan-j_2_2_D13-bin\xalan-j_2_2_D13\bin\xalan.jar;D:\tmp\xalan-j_2_2_D13- bin\xalan-j_2_2_D13\bin\xerces.jar;d:\tmp\BCEL\BC EL Any thoughts as to why this might happen? de.fub.bytecode.generic.ClassGenException: Illegal value: -1 at de.fub.bytecode.generic.LocalVariableInstruction.setIndex (LocalVariableInstruction.java:125) at de.fub.bytecode.generic.LocalVariableInstruction.<init> (LocalVariableInstruction.java:50) at de.fub.bytecode.generic.LoadInstruction.<init> (LoadInstruction.java:28) at de.fub.bytecode.generic.ILOAD.<init>(ILOAD.java:23) at org.apache.xalan.xsltc.compiler.util.MethodGenerator.loadCurrentNode (MethodGenerator.java:258) at org.apache.xalan.xsltc.compiler.util.MethodGenerator.loadContextNode (MethodGenerator.java:271) at org.apache.xalan.xsltc.compiler.Expression.startResetIterator (Expression.java:179) at org.apache.xalan.xsltc.compiler.CastExpr.translate(CastExpr.java:252) at org.apache.xalan.xsltc.compiler.ValueOf.translate(ValueOf.java:121) at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents (SyntaxTreeNode.java:530) at org.apache.xalan.xsltc.compiler.XslAttribute.translate (XslAttribute.java:242) at org.apache.xalan.xsltc.compiler.AttributeSet.translate (AttributeSet.java:211) at org.apache.xalan.xsltc.compiler.Stylesheet.translate (Stylesheet.java:490) at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:321) at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:232) at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:355) at org.apache.xalan.xsltc.compiler.XSLTC.main(XSLTC.java:800)
