Bug 70098 - [1.5] Old-style implementation of generic interface not accepted
Summary: [1.5] Old-style implementation of generic interface not accepted
Status: RESOLVED DUPLICATE of bug 69626
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-15 08:54 EDT by Johan Walles CLA
Modified: 2004-07-18 04:47 EDT (History)
0 users

See Also:


Attachments
Test case. Builds with javac, not with Eclipse. Should really be named something else :-). (1.10 KB, text/plain)
2004-07-15 08:55 EDT, Johan Walles CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Walles CLA 2004-07-15 08:54:13 EDT
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[])".
Comment 1 Johan Walles CLA 2004-07-15 08:55:31 EDT
Created attachment 13290 [details]
Test case.  Builds with javac, not with Eclipse.  Should really be named something else :-).
Comment 2 Igor Fedorenko CLA 2004-07-17 23:09:47 EDT
This is a dup of 69626, unless I'm missing something.
Comment 3 Philipe Mulet CLA 2004-07-18 04:47:24 EDT
Indeed, this is a dup.

*** This bug has been marked as a duplicate of 69626 ***