langtools/test/tools/javac/T4848619/T4848619a.java
author robm
Tue, 13 Sep 2016 14:47:29 +0100
changeset 40938 5b0977acc842
parent 27119 b80b6a2e137f
permissions -rw-r--r--
6947916: JarURLConnection does not handle useCaches correctly Reviewed-by: chegar

/*
 * @test    /nodynamiccopyright/
 * @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
 */

public class T4848619a {
    static void m() { System.err.println(X); };
    private static final String X = X;
}