Details
-
Bug
-
Resolution: Fixed
-
P3
-
None
-
b82
Description
This code should not compile:
class LambdaConv25 {
interface A {
<X> void m();
}
interface B {
<X> void m();
}
interface C extends A, B { }
void test() {
C c = ()->{}; //should fail
}
}
class LambdaConv25 {
interface A {
<X> void m();
}
interface B {
<X> void m();
}
interface C extends A, B { }
void test() {
C c = ()->{}; //should fail
}
}
Attachments
Issue Links
- duplicates
-
JDK-8007626 Lambda: compiler fails to reject generic functional descriptor in lambda expression
-
- Resolved
-