Details
-
Bug
-
Resolution: Fixed
-
P4
-
6u23, 7
-
b34
-
generic, sparc
-
generic, solaris_10
-
Not verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2208808 | 6u27 | Sean Coffey | P3 | Closed | Fixed | b01 |
JDK-2208659 | 6u26-rev | Sean Coffey | P3 | Resolved | Fixed | b21 |
JDK-2208639 | 6u25-rev | Sean Coffey | P3 | Resolved | Fixed | b21 |
JDK-2205470 | 6u24-rev | Sean Coffey | P3 | Resolved | Fixed | b23 |
JDK-2205469 | 5.0-pool | Sean Coffey | P3 | Closed | Won't Fix |
Description
The following program does not compile:
class X<T> {}
class Test {
public void test() {
m(new X<X<Integer>>(), new X()); // compile error in javac
}
public <T> void m(X<T> x, T t) {}
}
ACTUAL BEHAVIOR: does not compile
EXPECTED BEHAVIOUR: compile with warning
class X<T> {}
class Test {
public void test() {
m(new X<X<Integer>>(), new X()); // compile error in javac
}
public <T> void m(X<T> x, T t) {}
}
ACTUAL BEHAVIOR: does not compile
EXPECTED BEHAVIOUR: compile with warning
Attachments
Issue Links
- backported by
-
JDK-2205470 inference fails when a generic method is invoked with raw arguments
-
- Resolved
-
-
JDK-2208639 inference fails when a generic method is invoked with raw arguments
-
- Resolved
-
-
JDK-2208659 inference fails when a generic method is invoked with raw arguments
-
- Resolved
-
-
JDK-2205469 inference fails when a generic method is invoked with raw arguments
-
- Closed
-
-
JDK-2208808 inference fails when a generic method is invoked with raw arguments
-
- Closed
-
- duplicates
-
JDK-7013577 Java source compiles on ECLIPSE but fails on JDK 1.5 / 1.6
-
- Closed
-
(1 duplicates)