Bug 82932 - Bad compiler warning in Eclipse 3.1 M4
Summary: Bad compiler warning in Eclipse 3.1 M4
Status: RESOLVED DUPLICATE of bug 81618
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-16 18:01 EST by Alexander Veit CLA
Modified: 2005-01-17 04:27 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Veit CLA 2005-01-16 18:01:28 EST
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.
Comment 1 Olivier Thomann CLA 2005-01-16 20:01:31 EST
Fixed in HEAD.
Comment 2 Jerome Lanneluc CLA 2005-01-17 04:27:33 EST

*** This bug has been marked as a duplicate of 81618 ***