Community
Participate
Working Groups
The code below gives me a warning. I don't see why there should be a warning, so I'm guessing it's spurious. I fed it through javac and didn't get a warning, FWIW. The warning: Type safety: The return type Integer of the method get(Class<Integer>) of type Test.Bar needs unchecked conversion to conform to the return type T of inherited method. The code: public class Test { interface IFoo<T> { public T get(Class<T> clazz); } class Bar implements IFoo<Integer> { public Integer get(Class<Integer> arg0) { return new Integer(3); } } }
dup of bug 79687
Added GenericTypeTest#test565 *** This bug has been marked as a duplicate of 79687 ***