Project

Profile

Help

Bug #1467

closed

NegativeArraySizeException when generating bytecode

Added by Michael Kay about 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Category:
Byte code generation
Sprint/Milestone:
-
Start date:
2012-03-28
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

Failure while generating bytecode for an XSLT stylesheet that was generated using Altova Mapforce.

Failed while compiling function /

java.lang.NegativeArraySizeException

at org.objectweb.asm.Frame.a(Unknown Source)

at org.objectweb.asm.MethodWriter.visitMaxs(Unknown Source)

at org.objectweb.asm.commons.GeneratorAdapter.endMethod(Unknown Source)

at com.saxonica.bytecode.util.CompilerService.compileToByteCode(CompilerService.java:603)

at com.saxonica.expr.ee.OptimizerEE.compileToByteCode(OptimizerEE.java:1335)

at net.sf.saxon.style.XSLTemplate.optimize(XSLTemplate.java:450)

at net.sf.saxon.style.PrincipalStylesheetModule.compileStylesheet(PrincipalStylesheetModule.java:811)

at net.sf.saxon.PreparedStylesheet.setStylesheetDocument(PreparedStylesheet.java:376)

at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:223)

at net.sf.saxon.PreparedStylesheet.compile(PreparedStylesheet.java:104)

at net.sf.saxon.Transform.doTransform(Transform.java:565)

at net.sf.saxon.Transform.main(Transform.java:75)

Offending stylesheet attached. Problem reproduced.


Files

test.xsl (32.8 KB) test.xsl Michael Kay, 2012-03-28 07:30

Please register to edit this issue

Also available in: Atom PDF