Community
Participate
Working Groups
Type safety warning is reported in Eclipse-3.1M6 when using generic static inner class in a generic outer class. I think that the warning in the method mC is incorrect in the following code. class D<U> { public D (D<U> anotherD) { } } public class Construction<S> { public static class C<T> { public C(C<T> anotherC) { } } public void mD(D<S> d) { //the following line is OK (no warning reported) new D<S>(d); } public void mC(C<S> c) { /* type safety warning * (The expression of type Construction.C<S> * needs unchecked conversion to conform to * Construction<S>.C<S>) */ new C<S>(c); } }
Added GenericTypeTest#test583
*** This bug has been marked as a duplicate of 89274 ***