Inference with wildcard types causes selection of inapplicable method
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-6 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
$ lsb_release -rd
Description: Ubuntu 11.04
Release: 11.04
$ java -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.1) (6b22-1.
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
Running javac against "Comp.java" (attached):
$ javac Comp.java
Comp.java:24: invalid inferred types for T; actual arguments do not conforms to inferred formal arguments
required: java.lang.
found: java.util.
Comparator<
1 error
This error should not occur (successful compilation should result).
This issue was a bug in javac that has since been fixed: http://
It was fixed in OpenJDK 6 1.10: http://
Seeing as Ubuntu has 1.10.1, the bug should be fixed for it - but it is still present.
In the OpenJDK Ubuntu package changelog, I see that this particular change was reverted for Maverick: https:/
This problem is pretty major, as it means Ubuntu's shipping javac is not able to compile a variety of valid Java source.
Status changed to 'Confirmed' because the bug affects multiple users.