Bug 99125

Summary: Repetitive method name/signature in class file
Product: [Tools] AspectJ Reporter: attila lendvai <101>
Component: CompilerAssignee: Adrian Colyer <adrian.colyer>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: DEVELOPMENT   
Target Milestone: 1.5.0 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description attila lendvai CLA 2005-06-09 06:25:43 EDT
This is what the VM sais:

java.lang.ClassFormatError: Repetitive method name/signature in class file com/
netvisor/metadata_view/ComponentFactory
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)


And this is why: I've got an interface (ComponentFactory) and an aspect that 
adds various ITD methods trough that interface. I've added some methods to both 
the interface and the aspect, some other methods are only added trough the 
aspect. (The situation is a bit more complex, I've got a base interface/aspect 
with these two methods and the subaspects implement the problematic two methods
.)

And those methods that are both in the interface and the aspect are the ones 
that get duplicated in the interface class file.

This is working fine in the old CVS branch (1.2.*).

Hope it helps, good luck!
Comment 1 Adrian Colyer CLA 2005-08-26 11:27:34 EDT
needs investigating for M4 now that we're over the generics hump
Comment 2 Adrian Colyer CLA 2005-09-02 13:13:32 EDT
I finally managed to reproduce this, by using binary weaving rather than source (the failure does not occur 
when compiling from source).

Fix commited in tree, will be available in next published build.