Bug 71611 - [1.5] ClassFormatError when compiling simple example
Summary: [1.5] ClassFormatError when compiling simple example
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-07 03:29 EDT by Kasper Nielsen CLA
Modified: 2004-10-27 06:58 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 Kasper Nielsen CLA 2004-08-07 03:29:52 EDT
public class ErrorTest extends AbstractSet<Runnable>{

    public static void main(String[] args) {
        ErrorTest t=new ErrorTest();
        t.add(null);
    }
    
    public boolean add(Runnable run) {
        System.out.println("success");
        return true;
    }
    public Iterator iterator() {return null;}
    public int size() {return 0;}
}

when tried to execute, fails with:

java.lang.ClassFormatError: Repetitive method name/signature in class file ErrorTest
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:605)
	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)
Comment 1 Kasper Nielsen CLA 2004-08-07 05:42:32 EDT
just close this bug:

what I meant was https://bugs.eclipse.org/bugs/show_bug.cgi?id=71612

Comment 2 Olivier Thomann CLA 2004-08-08 13:25:46 EDT
Closing.