Bug 99125 - Repetitive method name/signature in class file
Summary: Repetitive method name/signature in class file
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.5.0 M4   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-09 06:25 EDT by attila lendvai CLA
Modified: 2005-09-02 13:13 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.