-
Bug
-
Resolution: Fixed
-
P4
-
8
-
b21
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8295757 | 19.0.2 | Vicente Arturo Romero Zaldivar | P4 | Resolved | Fixed | b03 |
JDK-8295758 | 17.0.6-oracle | Vicente Arturo Romero Zaldivar | P4 | Resolved | Fixed | b04 |
JDK-8297049 | 17.0.6 | Goetz Lindenmaier | P4 | Resolved | Fixed | b03 |
JDK-8295759 | 11.0.18-oracle | Vicente Arturo Romero Zaldivar | P4 | Resolved | Fixed | b04 |
JDK-8297248 | 11.0.18 | Goetz Lindenmaier | P4 | Resolved | Fixed | b04 |
class Outer<T> {
class Inner1 {}
class Inner2<U> {}
// expected/actual: ok
Supplier<Outer.Inner1> s1 = Outer.Inner1::new;
// expected/actual: ok
Supplier<Outer.Inner2> s2 = Outer.Inner2::new;
// expected: unchecked conversion; actual: ok
Supplier<Outer<T>.Inner1> s3 = Outer.Inner1::new;
// expected: unchecked conversion; actual: inference error
Supplier<Outer<T>.Inner2<String>> s4 = Outer.Inner2::new;
}
The inference error in the last case above makes it clear that javac is trying to perform diamond inference here.
- backported by
-
JDK-8295757 Raw inner class constructor ref should not perform diamond inference
-
- Resolved
-
-
JDK-8295758 Raw inner class constructor ref should not perform diamond inference
-
- Resolved
-
-
JDK-8295759 Raw inner class constructor ref should not perform diamond inference
-
- Resolved
-
-
JDK-8297049 Raw inner class constructor ref should not perform diamond inference
-
- Resolved
-
-
JDK-8297248 Raw inner class constructor ref should not perform diamond inference
-
- Resolved
-
- csr for
-
JDK-8292052 Raw inner class constructor ref should not perform diamond inference
-
- Closed
-
- relates to
-
JDK-8029632 Lambda Spec: Raw inner class constructor ref should not attempt diamond inference
-
- Closed
-
- links to
-
Commit openjdk/jdk11u-dev/4ee685a9
-
Commit openjdk/jdk17u-dev/8ce7bb4e
-
Commit openjdk/jdk19u/ea145851
-
Commit openjdk/jdk/6707bfbc
-
Review openjdk/jdk11u-dev/1523
-
Review openjdk/jdk17u-dev/835
-
Review openjdk/jdk19u/55
-
Review openjdk/jdk/9784