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 4912075
|
|
|
|
* @summary static import of private field crashes compiler
|
|
|
|
* @author gafter
|
|
|
|
*
|
2015-01-27 23:11:57 +00:00
|
|
|
* @compile/fail/ref=PrivateStaticImport.out -XDrawDiagnostics PrivateStaticImport.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package psi;
|
|
|
|
|
|
|
|
import static psi.Foo.*;
|
|
|
|
|
|
|
|
class Foo {
|
|
|
|
private static int FOO_VALUE = 55;
|
|
|
|
}
|
|
|
|
class Bar {
|
|
|
|
int value = FOO_VALUE;
|
|
|
|
}
|