Community
Participate
Working Groups
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)
fixed
regression test is GenericTypeTest#test146