Bug 85477 - [1.5] certain unchecked conversion not reported
Summary: [1.5] certain unchecked conversion not reported
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-16 12:30 EST by Nikolay Metchev CLA
Modified: 2005-03-31 08:50 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 Nikolay Metchev CLA 2005-02-16 12:30:32 EST
The following code javac reports the unchecked conversion, eclipse doesn't:
----------
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

public final class ListUtils
{
   public static List sort(final List list,final Comparator comparator)
   {
      Collections.sort(list,comparator); //this line is where javac complains
      return list;
   }
}
Comment 1 Philipe Mulet CLA 2005-02-17 09:54:29 EST
Raw generic method invocation were not reported.
Added support and GenericTypeTest#test506.
Comment 2 Philipe Mulet CLA 2005-02-17 09:54:57 EST
Fixed (released postM5 since we froze already)
Comment 3 David Audel CLA 2005-03-31 08:50:17 EST
Verified in I20050330-0500