Community
Participate
Working Groups
Using Eclipse 3.0GA and Cheetah 0.0.6: I'll shortly attach a Java program that contains the simplest possible implementation of the java.util.Collection <T> interface. The important parts of the program are: 1 import java.util.*; 2 3 public class Generics implements Collection{ 4 5 public Object[] toArray(Object[] arg0) { 6 return null; 7 } 8 x ... N } It compiles fine using SUN's jdk-1_5_0-beta2-bin-b51 javac compiler. Eclipse gives me an error at line 5 however saying that: "The return type is incompatible with Collection.toArray(T[])".
Created attachment 13290 [details] Test case. Builds with javac, not with Eclipse. Should really be named something else :-).
This is a dup of 69626, unless I'm missing something.
Indeed, this is a dup. *** This bug has been marked as a duplicate of 69626 ***