-
Bug
-
Resolution: Fixed
-
P3
-
8, 9
-
b51
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085341 | emb-9 | Srikanth Adayapalam | P3 | Resolved | Fixed | team |
JDK-8086994 | 8u65 | Vicente Arturo Romero Zaldivar | P3 | Resolved | Fixed | b01 |
JDK-8069546 | 8u60 | Srikanth Adayapalam | P3 | Resolved | Fixed | b10 |
JDK-8138436 | emb-8u65 | Unassigned | P3 | Resolved | Fixed | b01 |
JDK-8079043 | emb-8u60 | Vicente Arturo Romero Zaldivar | P3 | Resolved | Fixed | team |
class Test {
interface Function<X, Y> {
Y m(X x);
}
interface Box<T> {
T get();
<R> R map(Function<T,R> f);
}
static class Person {
Person(String name) { }
}
void print(Object arg) { }
void print(String arg) { }
void test() {
Box<String> b = null;
print(b.map(s -> new Person(s)));
}
}
javac "unsticks" the implicit lambda during overload resolution, thus selecting method print(Object) as applicable. This is incorrect, method print(String) should be the one selected.
- backported by
-
JDK-8069546 javac, shouldn't check nested stuck lambdas during overload resolution
-
- Resolved
-
-
JDK-8079043 javac, shouldn't check nested stuck lambdas during overload resolution
-
- Resolved
-
-
JDK-8085341 javac, shouldn't check nested stuck lambdas during overload resolution
-
- Resolved
-
-
JDK-8086994 javac, shouldn't check nested stuck lambdas during overload resolution
-
- Resolved
-
-
JDK-8138436 javac, shouldn't check nested stuck lambdas during overload resolution
-
- Resolved
-
- blocks
-
JDK-8068399 Assertion failed in javac
-
- Closed
-
- duplicates
-
JDK-8078075 Compilation Error (NPE)
-
- Closed
-
-
JDK-8178296 wrapper class object passed as parameter value of Stream.reduce method causes compiler assertionerror
-
- Closed
-
-
JDK-8059413 javac crash during deferred attribution
-
- Closed
-
-
JDK-8068399 Assertion failed in javac
-
- Closed
-
-
JDK-8059416 javac crash during deferred attribution
-
- Closed
-
- relates to
-
JDK-8134711 18.4: Improve generation of fresh variables
-
- Open
-
-
JDK-8069544 18.5.2: Define method invocation compatibility without forcing lambdas to be checked
-
- Closed
-
-
JDK-8073201 Incorrect @bug annotation in checkin for JDK-8069545
-
- Closed
-
-
JDK-8138954 Inference failure when using a constructor reference
-
- Open
-
-
JDK-8148128 Regression: array constructor references marked as inexact
-
- Closed
-
-
JDK-8173176 javac inference failure when using implicit lambdas or inexact method references
-
- Closed
-