langtools/test/tools/javac/4980495/static/Test.java
author jlahoda
Thu, 09 Oct 2014 10:08:52 +0200
changeset 26993 513b2cae81c3
parent 6150 d055fa8ced62
permissions -rw-r--r--
8057652: Request to improve error messages for labeled declarations Summary: Parse labeled statements as block statements to improve error recovery for labeled declarations; related cleanup. Reviewed-by: jjg

/*
 * @test  /nodynamiccopyright/
 * @bug 4980495 6260444
 * @compile/fail/ref=Test.out -XDrawDiagnostics Test.java p1/A1.java p2/A2.java
 */

package p;

import static p1.A1.f;
import static p2.A2.f;

public class Test {

    public static void main(String argv[]) {
        f = 1;
    }
}