NegativeArraySizeException on Frame.merge

offbynull-asm <[email protected]> Mon, 12 Sep 2016 17:58:41 -0700
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
My understanding is that this exception happens when you consume more 
items than the stack has available.

Is there an easy way to find out where this happening? I'm using Java8 
so turning off ClassWriter.COMPUTE_FRAMES and running the resulting 
class file won't give me the bad index/instruction (it instead complains 
about missing stackmap frames).

java.lang.NegativeArraySizeException
     at org.objectweb.asm.Frame.merge(Frame.java:1343)
     at org.objectweb.asm.MethodWriter.visitMaxs(MethodWriter.java:1475)
     at org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:835)
     at org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:727)
     at org.objectweb.asm.tree.ClassNode.accept(ClassNode.java:412)
     at 
com.offbynull.coroutines.instrumenter.Instrumenter.instrument(Instrumenter.java:125)
     at 
com.offbynull.coroutines.instrumenter.testhelpers.TestUtils.loadClassesInZipResourceAndInstrument(TestUtils.java:92)
     at 
com.offbynull.coroutines.instrumenter.InstrumenterTest.performCountTest(InstrumenterTest.java:339)
     at 
com.offbynull.coroutines.instrumenter.InstrumenterTest.mustProperlySuspendWithStaticMethods(InstrumenterTest.java:84)


-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws