History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-5429
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Eugene Vigdorchik
Reporter: Thomas Singer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Generics bug: good code is red

Created: 04 Apr 06 19:37   Updated: 04 Apr 06 20:15
Component/s: None
Fix Version/s: 5.1.1

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 4,188
Fixed in build: 4,190
Severity: Medium


 Description  « Hide
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?



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.