Bug 77785 - [1.5][compiler] Generics: missing name clash error
Summary: [1.5][compiler] Generics: missing name clash error
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-03 18:10 EST by A Vaskys CLA
Modified: 2004-12-14 11:03 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 A Vaskys CLA 2004-11-03 18:10:32 EST
The following classes compile with eclipse 3.1 N20041101:

--------------------------------------

public class X<T> { }

public class Y {
   public void test(X<? extends Number> a) { }
}

public class Z extends Y {
   public void test(X<Number> a) { }
}

--------------------------------------

Class Z should be giving an error. The following error is returned when
compiling using sun's JDK:

Z.java:1: name clash: test(X<java.lang.Number>) in Z and test(X<? extends java.l
ang.Number>) in Y have the same erasure, yet neither overrides the other
Comment 1 Kent Johnson CLA 2004-11-16 15:33:49 EST
Added MethodVerify test 17
Comment 2 Olivier Thomann CLA 2004-12-14 11:03:36 EST
Verified in 200412140800