test/tools/javac/4980495/static/Test.java

changeset 0
959103a6100f
child 2525
2eb010b6cb22
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/tools/javac/4980495/static/Test.java	Wed Apr 27 01:34:52 2016 +0800
     1.3 @@ -0,0 +1,17 @@
     1.4 +/*
     1.5 + * @test  /nodynamiccopyright/
     1.6 + * @bug 4980495 6260444
     1.7 + * @compile/fail/ref=Test.out -XDrawDiagnostics Test.java p1/A1.java p2/A2.java
     1.8 + */
     1.9 +
    1.10 +package p;
    1.11 +
    1.12 +import static p1.A1.f;
    1.13 +import static p2.A2.f;
    1.14 +
    1.15 +public class Test {
    1.16 +
    1.17 +    public static void main(String argv[]) {
    1.18 +        f = 1;
    1.19 +    }
    1.20 +}

mercurial