jdk-24/test/langtools/tools/javac/T4848619/T4848619a.java

13 lines
352 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
2007-12-01 00:00:00 +00:00
* @bug 4848619
* @summary static final variable declared after use and self initialized
* @author Peter von der Ah\u00e9
* @compile/fail/ref=T4848619a.out -XDrawDiagnostics T4848619a.java
2007-12-01 00:00:00 +00:00
*/
public class T4848619a {
static void m() { System.err.println(X); };
private static final String X = X;
}