Community
Participate
Working Groups
See the following example. There is ambiguous error in C2#m2 for the invocation of C2.m1 which inherits (implement) C1.m1 (a abstract method). Such error does not happen if T does not extends Comparable<T>. abstract class C1 { abstract <T extends Comparable<T>> void m1(T t); } class C2 extends C1 { <T extends Comparable<T>> void m1(T t) { System.out.println("C2#m1()"); } void m2() { this.m1(new Integer(1)); } }
*** This bug has been marked as a duplicate of 100869 ***