2013-03-05 14:19:49 +00:00
|
|
|
/*
|
2020-12-30 17:20:54 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2013-03-05 14:19:49 +00:00
|
|
|
* @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;
|
|
|
|
}
|
|
|
|
}
|