jdk-24/test/langtools/tools/javac/staticImport/PrivateStaticImport.java
2017-09-12 19:03:39 +02:00

20 lines
359 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4912075
* @summary static import of private field crashes compiler
* @author gafter
*
* @compile/fail/ref=PrivateStaticImport.out -XDrawDiagnostics PrivateStaticImport.java
*/
package psi;
import static psi.Foo.*;
class Foo {
private static int FOO_VALUE = 55;
}
class Bar {
int value = FOO_VALUE;
}