Community
Participate
Working Groups
I20050811-1530 + jdt.core v_606 class A<T> { <S extends T> void foo2(Number t, S s) { System.out.println("A"); } } class B extends A<Number> { @Override //eclipse: foo2(..) must override a superclass method <S extends Number> void foo2(Number t, S s) { System.out.println("B"); } } public class Test { public static void main(String[] args) { B b= new B(); b.foo2(1, 10); //eclipse: ambiguous A<Number> a= b; a.foo2(2, 20); } } Javac 1.5.0_04 gives no errors, which seems correct.
fixed & released in 3.1.1 stream
Added MethodVerify test067
released in 3.2 HEAD stream
Verified for 3.2 M2 with build I20050920-0010.
Verified for 3.1.1 using M20050923-1430.