langtools/test/tools/javac/T4848619/T4848619b.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
27119
b80b6a2e137f 8058410: Group 10b: golden files for tests in tools/javac dir
sogoel
parents: 5520
diff changeset
     2
 * @test    /nodynamiccopyright/
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * @bug     4848619
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 * @summary static final variable declared after use and self initialized
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * @author  Peter von der Ah\u00e9
27119
b80b6a2e137f 8058410: Group 10b: golden files for tests in tools/javac dir
sogoel
parents: 5520
diff changeset
     6
 * @compile/fail/ref=T4848619b.out -XDrawDiagnostics T4848619b.java
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
public class T4848619b {
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
    int getX() { return y; }
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
    int y = y;
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
}