Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Eugene Vigdorchik 
Subsystem
No subsystem 
Affected versions
Fixed in
Fixed in build
Next build 
Build
4188
Fixed in build
4190
Severity
0
  • Submitted by   Thomas Singer
    3 years ago (04 Apr 2006 19:37)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:27)
  • Jira: IDEA-31782
    (history, comments)

IDEA-31782

Generics bug: good code is red

0
public static void foo(List<? extends Foo> foos) {
  final Comparator<Foo> comparator = createComparator();
  Collections.sort(foos, comparator);
}

private static Comparator<Foo> createComparator() {
  return ...;
}

public interface Foo {
}


IDEA 4188 highlights the method call Collections.sort() in red, where as the compiler does not show an error. Who is right?

Issue was resolved
Comments (0)
 
History (1)
 
Links
 
Issue has no comments