Details
Description
Java produces the following Exception at runtime:
Exception in thread "main" java.lang.ClassFormatError: Method lambda$0$bridge in class x/T has illegal modifiers: 0x1000
Testcase:
package x;
interface SAM {
int m();
}
interface SuperI {
public default int foo() { return 0; }
}
interface I extends SuperI {
}
interface T extends I {
public default void boo() { SAM s = I.super::foo; }
}
public class lmbd04804m0 {
public static void main(String argv[]) {
new T(){};
}
}
Exception in thread "main" java.lang.ClassFormatError: Method lambda$0$bridge in class x/T has illegal modifiers: 0x1000
Testcase:
package x;
interface SAM {
int m();
}
interface SuperI {
public default int foo() { return 0; }
}
interface I extends SuperI {
}
interface T extends I {
public default void boo() { SAM s = I.super::foo; }
}
public class lmbd04804m0 {
public static void main(String argv[]) {
new T(){};
}
}
Attachments
Issue Links
- is blocked by
-
JDK-8012557 Implement lambda methods on interfaces as private
- Closed
- relates to
-
JDK-8032610 regression test for 8026022
- Resolved