Community
Participate
Working Groups
class ShowBug implements java.util.Iterator<java.lang.Integer> { public boolean hasNext() {return false;} public Integer next() {return null;} public void remove() {} } Produces the compiler warning "Type safety: The return type Integer of the method next() of type ShowBug needs unchecked conversion to conform to the return type E of inherited method.", which is wrong.
Fixed in HEAD.
*** This bug has been marked as a duplicate of 81618 ***