Hi, I've just moved to jdk 1.5 with generics and I'm sure BCEL can't support them, is this true? I am getting the following errors. I am inserting instructions into methods and I get:
java.lang.ClassFormatError: LVTT entry for 'iterator1' in class file aspencer/filesystemscanner/impl/FileSystemScannerTest 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 aspencer.instrumentation.TestTesting$MyClassLoader.loadClass(TestTesting.java:146) at aspencer.instrumentation.TestTesting.modify(TestTesting.java:99) Then I have tried to add: mg.removeLineNumbers(); mg.removeLocalVariables(); And I get: Exception in thread "main" java.lang.VerifyError: (class: aspencer/filesystemscanner/impl/FileSystemScannerTest, method: createFileSystem signature: (Ljava/lang/String;Z)Laspencer/vfs/im/InMemoryFilesystem;) Illegal constant pool index at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at junit.runner.StandardTestSuiteLoader.load(StandardTestSuiteLoader.java:11) The first exception is talking about a variable that is generic and the second about a signature that is. I have not tried the svn version yet, will this help? Please reply to me directly as I am not subscribed to the list. Thanks, Alan. _______________________ Alan Pearlman-Spencer _______________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]