Bug 77562 - [1.5] overriding methods with more specific generic return types causes compile errors
Summary: [1.5] overriding methods with more specific generic return types causes compi...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-02 22:24 EST by Khaled Agrama CLA
Modified: 2004-12-14 11:01 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 Khaled Agrama CLA 2004-11-02 22:24:13 EST
The following compiles with sun's compiler, but not the jdt compiler:

public class Test {
    
    interface A {
        List getList();
    }
    
    interface B extends A {
        List<String> getList();
    }
}

I get the following compile error:
Name clash : The method getList() of type Test.B has the same erasure as
getList() of type Test.A but does not override it

I am running the integration build from 11/2/04.
Comment 1 Frederic Fusier CLA 2004-11-04 04:23:31 EST

*** This bug has been marked as a duplicate of 77228 ***
Comment 2 Kent Johnson CLA 2004-11-19 12:05:25 EST
this is not a duplicate
Comment 3 Kent Johnson CLA 2004-11-19 13:49:56 EST
Added MethodVerify test 22
Comment 4 Olivier Thomann CLA 2004-12-14 11:01:05 EST
Verified in 200412140800