Bug 85477

Summary: [1.5] certain unchecked conversion not reported
Product: [Eclipse Project] JDT Reporter: Nikolay Metchev <nikolaymetchev>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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