[ https://issues.apache.org/jira/browse/BCEL-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14697594#comment-14697594 ]
Mark Roberts commented on BCEL-79: ---------------------------------- I have deleted the PLSETestCase.java attached to this bug report. Here are the steps i took: svn info shows Last Changed Rev: 1695799 I then apply bug79.diff which adds a new test method testB79 to the existing PLSETestCase.java and adds a new method meth2 to PLSETestClass.java. i then do mvn verify and here is a slice of the output: Running org.apache.commons.bcel6.PLSETestCase Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.203 sec <<< FAILURE! - in org.apache.commons.bcel6.PLSETestCase testB79(org.apache.commons.bcel6.PLSETestCase) Time elapsed: 0.199 sec <<< FAILURE! junit.framework.AssertionFailedError: number of locals expected:<5> but was:<1> at junit.framework.Assert.fail(Assert.java:57) at junit.framework.Assert.failNotEquals(Assert.java:329) at junit.framework.Assert.assertEquals(Assert.java:78) at junit.framework.Assert.assertEquals(Assert.java:234) at junit.framework.TestCase.assertEquals(TestCase.java:401) at org.apache.commons.bcel6.PLSETestCase.testB79(PLSETestCase.java:63) The fix is to remove the code added by the attached file bcel-patch-method.txt. > java.lang.ClassFormatError: LVTT entry for 'local' in class file > org/shiftone/jrat/test/dummy/CrashTestDummy does not match any LVT entry > ----------------------------------------------------------------------------------------------------------------------------------------- > > Key: BCEL-79 > URL: https://issues.apache.org/jira/browse/BCEL-79 > Project: Commons BCEL > Issue Type: Bug > Components: Main > Reporter: Jeff Drost > Assignee: Apache Commons Developers > Priority: Blocker > Fix For: 6.1 > > Attachments: bcel-patch-method.txt, bug79.diff > > > I have tried both the release at http://people.apache.org/~tcurdt/bcel/rc2/ , > as > well as a build from head (410655). I see the same ClassFormatError with > both. > I get this error when running a JRat test case. This project and the test > case > is avalible on sourceforge (http://sourceforge.net/projects/jrat) - or I can > provide it directly. The test case uses BCEL to isntrument a class and then > tries to execute methods various methods on it. > see org.shiftone.jrat.test.InjectorTestCase > java.lang.ClassFormatError: LVTT entry for 'local' in class file > org/shiftone/jrat/test/dummy/CrashTestDummy does not match any LVT entry > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:620) > at java.lang.ClassLoader.defineClass(ClassLoader.java:465) > at > org.shiftone.jrat.test.TestClassLoader.loadClass(TestClassLoader.java:36) > at > org.shiftone.jrat.test.InjectorTestCase.setUp(InjectorTestCase.java:52) > at > com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:32) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) -- This message was sent by Atlassian JIRA (v6.3.4#6332)