langtools/test/tools/javac/Parens4.java
author amurillo
Mon, 11 Apr 2016 20:38:38 -0700
changeset 37298 8df0cc9da41e
parent 26662 7cf828d7c8fc
permissions -rw-r--r--
8154028: Several hotspot tests need to be updated after 8153737 (Unsupported Module) Reviewed-by: darcy, kvn

/*
 * @test /nodynamiccopyright/
 * @bug 4933317
 * @summary javac accepts parens in package names
 * @author gafter
 *
 * @compile/fail/ref=Parens4.out -XDrawDiagnostics Parens4.java
 */

class Parens4 {
    Object f() {
        return (java).util.Collections.EMPTY_LIST;
    }
}