langtools/test/tools/javac/Parens4.java
author hannesw
Tue, 22 Mar 2016 14:23:16 +0100
changeset 36690 06b714373aa4
parent 26662 7cf828d7c8fc
permissions -rw-r--r--
8151810: for-in iteration does not provide per-iteration scope Reviewed-by: attila, lagergren

/*
 * @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;
    }
}