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
Actions #1

Updated by O'Neil Delpratt about 12 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Bug fixed and committed to subversion, which will be in the next Saxon 9.4 maintenance release. The stack trace reported incorrect popping of the stack when converting integer to string. Solution: Simplified handling to the calling class.

Actions #2

Updated by Michael Kay almost 12 years ago

  • Status changed from Resolved to Closed
  • Fixed in version set to 9.4.0.4

Please register to edit this issue

Also available in: Atom PDF