> On 08:49:36 AM Wednesday, May 11, 2011 Orion Poplawski wrote: >> Error is during the tests: >> >> Â Â Â[junit] Testcase: >> testCanMockTypesFromADynamicClassLoader(org.jmock.test.unit.lib.JavaReflect >> ionImposteriserTests): Caused an ERROR >> Â Â Â[junit] Invalid superclass index 0 in class file $UniqueTypeName$ >> Â Â Â[junit] java.lang.ClassFormatError: Invalid superclass index 0 in >> class file $UniqueTypeName$ >> Â Â Â[junit] Â Â at java.lang.ClassLoader.defineClass1(Native Method) >> Â Â Â[junit] Â Â at java.lang.ClassLoader.defineClass(ClassLoader.java:634) >> Â Â Â[junit] Â Â at java.lang.ClassLoader.defineClass(ClassLoader.java:480) >> Â Â Â[junit] Â Â at >> org.jmock.test.unit.support.SyntheticEmptyInterfaceClassLoader.synthesiseIn >> terface(SyntheticEmptyInterfaceClassLoader.java:43) [junit] Â Â at >> org.jmock.test.unit.support.SyntheticEmptyInterfaceClassLoader.findClass(Sy >> ntheticEmptyInterfaceClassLoader.java:25) [junit] Â Â at >> java.lang.ClassLoader.loadClass(ClassLoader.java:321) [junit] Â Â at >> java.lang.ClassLoader.loadClass(ClassLoader.java:266) [junit] Â Â at >> org.jmock.test.unit.lib.JavaReflectionImposteriserTests.testCanMockTypesFro >> mADynamicClassLoader(JavaReflectionImposteriserTests.java:38) >> >> I have no idea about this. ÂI've applied two patches. ÂOne to use >> objectweb classes directly rather than from cglib, and one derived from >> the 2.6.0-RC2 release to support java 1.6. I think the problem depends on the version of asm you are using; the error is thrown on a call to a cglib method which your patch reroutes directly to asm. -- Guido Grazioli <guido.grazioli@xxxxxxxxx> Via Parri 11 48011 - Alfonsine (RA) Mobile: +39 347 1017202 (10-18) Key FP = 7040 F398 0DED A737 7337Â DAE1 12DC A698 5E81 2278 Linked in: http://www.linkedin.com/in/guidograzioli -- java-devel mailing list java-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/java-devel