DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=27607>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27607 [XSLTC] bad xsl compilation if exslt used in one xsl Summary: [XSLTC] bad xsl compilation if exslt used in one xsl Product: XalanJ2 Version: 2.5Dx Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: org.apache.xalan.xsltc AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I compile a list of xsl. Two of them use exslt extension for node-set() function. If I include all the xsl, a third xsl failed to process (see below). If I removed the two ones with exslt functions, all xsl work well. The crash comes with this fragment of xsl : <xsl:template name="toto"> <!-- This works --> <xsl:variable name="good"/> <xsl:variable name="goot-too" select="."/> <!-- This failed --> <xsl:variable name="titi"></xsl:variable> <xsl:variable name="titi">Argh!</xsl:variable> ... </xsl:template> The exception is : Exception in thread "main" java.lang.VerifyError: (class: translet/xsl/toto, met hod: template$dot$270 signature: (Lorg/apache/xalan/xsltc/DOM;Lorg/apache/xml/dt m/DTMAxisIterator;Lorg/apache/xml/serializer/SerializationHandler;I)V) Incompati ble object argument for function call at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.xalan.xsltc.cmdline.Transform.loadTranslet(Transform.java: 136) at org.apache.xalan.xsltc.cmdline.Transform.doTransform(Transform.java:1 50) at org.apache.xalan.xsltc.cmdline.Transform.main(Transform.java:337) When I compile without the two xsl which make the problem, the class size is smaller than when I compile it with all xsl (so there are a lot of bytcode added). The problem occurs with jdk 1.4.1 and 1.4.2, with xalan 2.5.2 and 2.6.0. A workaround seems compile the two buggy xsl alone, and all others together.
