Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
12 lines
348 B
Java
12 lines
348 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 4848619
|
|
* @summary static final variable declared after use and self initialized
|
|
* @author Peter von der Ahé
|
|
* @compile/fail/ref=T4848619a.out -XDrawDiagnostics T4848619a.java
|
|
*/
|
|
|
|
public class T4848619a {
|
|
static void m() { System.err.println(X); };
|
|
private static final String X = X;
|
|
}
|