Bug 59628 - [1.5] Erroneous diagnosis for missing abstract method implementation
Summary: [1.5] Erroneous diagnosis for missing abstract method implementation
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-22 10:09 EDT by Philipe Mulet CLA
Modified: 2005-01-11 11:02 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2004-04-22 10:09:42 EDT
Cheetah03.

The following code should compile clear, but it gets blamed with missing 
abstract method implementations:

import java.util.AbstractList;
 
public class X extends AbstractList {
	public static void main(String[] args) {
        System.out.println("SUCCESS");
    }    	
	public int size() {
		return 0;
	}
	public Object get(int index) {
		return null;
	}
}

----------
1. ERROR in d:\src\X.java (at line 3)
	public class X extends AbstractList {
	             ^
Class must implement the inherited abstract method Collection.toArray(T[])
----------
2. ERROR in d:\src\X.java (at line 3)
	public class X extends AbstractList {
	             ^
Class must implement the inherited abstract method List.toArray(T[])
----------
2 problems (2 errors)
Comment 1 Kent Johnson CLA 2004-04-22 14:24:15 EDT
fixed
Comment 2 Philipe Mulet CLA 2004-04-22 18:05:33 EDT
regression test is GenericTypeTest#test146