Summary: | [1.5] generics T does not match ? super (? extends T) | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Garret Wilson <garret> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1 M5 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Garret Wilson
2005-02-03 12:04:49 EST
Following test case compiles without any error: import java.io.File; import java.util.Collections; import java.util.Comparator; import java.util.List; public class Test { public static <T> void myMethod(final List<? extends File> fileList) { Collections.sort(fileList, new Comparator<File>(){ public int compare(File f1, File f2) { return 0; } }); } } Surely fixed with latest 1.5 changes... Yes---I've verified this now compiles under 3.1 M5. Garret |