jdk-24/test/langtools/tools/javac/lambda/inaccessibleMref01/InaccessibleMref01.java

17 lines
366 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8003280
* @summary Add lambda tests
* check that classfiles with member ref CP entries are read correctly
* @compile/fail/ref=InaccessibleMref01.out -XDrawDiagnostics InaccessibleMref01.java
*/
class InaccessibleMref01 {
interface SAM {
void m();
}
void test(p1.C c) {
SAM s = c::m;
}
}