blob: f873f2dbe8f2ec0f853f4e102c9fc45ef61a9d6a [file] [log] [blame]
/*
* @test /nodynamiccopyright/
* @bug 8030816
* @summary javac can't compile program with lambda expression
* @compile/fail/ref=CrashLambdaExpressionWithNonAccessibleIdTest.out -XDrawDiagnostics CrashLambdaExpressionWithNonAccessibleIdTest.java
*/
/* This test must make sure that javac won't crash when compiling lambda
* containing an anonymous innerclass based on an unresolvable type.
*/
public class CrashLambdaExpressionWithNonAccessibleIdTest {
void m() {
m1(()-> {
new A(){
public void m11() {}
};
});
}
void m1(Runnable r) {}
}