[jboss-jira] [JBoss JIRA] Created: (JASSIST-63) The stack map table is not correctly rebuilt for frame type 64-127 and frame type 247.

Jason Hill (JIRA) jira-events at lists.jboss.org
Thu May 15 11:49:24 EDT 2008


The stack map table is not correctly rebuilt for frame type 64-127 and frame type 247.
--------------------------------------------------------------------------------------

                 Key: JASSIST-63
                 URL: http://jira.jboss.com/jira/browse/JASSIST-63
             Project: Javassist
          Issue Type: Bug
         Environment: java jdk1.6.0_05 on windows xp sp2
            Reporter: Jason Hill
         Assigned To: Shigeru Chiba


I receive the following exception when using javassist to modify the bytecode of an existing class.

javassist.CannotCompileException: by javassist.bytecode.BadBytecode: bad frame_type in StackMapTable
	at javassist.CtClassType.modifyConstructors(CtClassType.java:1457)
	at javassist.CtClassType.toBytecode(CtClassType.java:1318)
	at javassist.CtClass.toBytecode(CtClass.java:1205)
	at javassist.bytecode.test.StackMapFrameModificationTest.frameTypeTest(StackMapFrameModificationTest.java:50)
	at javassist.bytecode.test.StackMapFrameModificationTest.testFrameType64To127(StackMapFrameModificationTest.java:13)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at junit.framework.TestCase.runTest(TestCase.java:164)
	at junit.framework.TestCase.runBare(TestCase.java:130)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:120)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: javassist.bytecode.BadBytecode: bad frame_type in StackMapTable
	at javassist.bytecode.StackMapTable$Walker.stackMapFrames(StackMapTable.java:200)
	at javassist.bytecode.StackMapTable$Walker.parse(StackMapTable.java:179)
	at javassist.bytecode.StackMapTable$Shifter.doit(StackMapTable.java:714)
	at javassist.bytecode.StackMapTable.shiftPc(StackMapTable.java:693)
	at javassist.bytecode.CodeIterator.insertGap0(CodeIterator.java:676)
	at javassist.bytecode.CodeIterator.insertGap(CodeIterator.java:636)
	at javassist.bytecode.CodeIterator.insertGapCore(CodeIterator.java:467)
	at javassist.bytecode.CodeIterator.insert0(CodeIterator.java:370)
	at javassist.bytecode.CodeIterator.insertEx(CodeIterator.java:339)
	at javassist.CtClassType.insertAuxInitializer(CtClassType.java:1478)
	at javassist.CtClassType.modifyConstructors(CtClassType.java:1453)
	... 22 more



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list