2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-01-27 23:11:57 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4979456
|
|
|
|
* @summary NPE while compiling static import of inaccessible class member
|
|
|
|
* @author gafter
|
|
|
|
*
|
2015-01-27 23:11:57 +00:00
|
|
|
* @compile/fail/ref=ImportPrivate.out -XDrawDiagnostics ImportPrivate.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package importPrivate;
|
|
|
|
|
|
|
|
import static importPrivate.A.m;
|
|
|
|
|
|
|
|
class A {
|
|
|
|
private static int m() {
|
|
|
|
return 8;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class MyTest {
|
2023-01-17 04:43:40 +00:00
|
|
|
public static void meth() {
|
2007-12-01 00:00:00 +00:00
|
|
|
m();
|
|
|
|
}
|
|
|
|
}
|