langtools/test/tools/javac/T4848619/T4848619b.java
author avstepan
Tue, 19 May 2015 16:04:14 +0400
changeset 30655 d83f50188ca9
parent 27119 b80b6a2e137f
permissions -rw-r--r--
8080422: some docs cleanup for core libs Summary: some docs cleanup Reviewed-by: rriggs, lancea
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
}