Community
Participate
Working Groups
The Eclipse compiler incorrectly reports an unchecked conversion. Code tested and passed using javac with the -Xlint:all flag. Compiler settings are default except for compiler compliance level, which is the default 5.0 setting. Warning text: Type safety: The return type Integer of the method make() of type IntegerFactory needs unchecked conversion to conform to the return type T of inherited method ---Example--- interface Factory<T> { public T make(); } class IntegerFactory implements Factory<Integer> { public Integer make() { //warning marker on "Integer" return 0; } }
*** This bug has been marked as a duplicate of 79687 ***