Description
The following code crashes javac
interface SAM {
Object m();
}
class Test {
static void test(String s) {
class Foo {
void m() {
Object o = s;
}
}
SAM s2 = ()->new Foo(); }
}
interface SAM {
Object m();
}
class Test {
static void test(String s) {
class Foo {
void m() {
Object o = s;
}
}
SAM s2 = ()->new Foo(); }
}
Attachments
Issue Links
- relates to
-
JDK-8008507 JCK tests on lambda fail with VerifyError: Bad local variable type
-
- Resolved
-
-
JDK-8029852 Bad code generated (VerifyError) when lambda instantiates enclosing local class and has captured variables
-
- Resolved
-
-
JDK-7115044 Umbrella: Add support for lambda expressions
-
- Resolved
-