langtools/test/tools/javac/Parens1.java
author duke
Wed, 05 Jul 2017 23:01:50 +0200
changeset 44228 e46434c65a2b
parent 26662 7cf828d7c8fc
permissions -rw-r--r--
Merge

/*
 * @test /nodynamiccopyright/
 * @bug 4391330
 * @summary compiler accepted (Integer).toString(123)
 * @author gafter
 *
 * @compile/fail/ref=Parens1.out -XDrawDiagnostics Parens1.java
 */

class Parens1 {
    void f() {
        String s = (Integer).toString(123);
    }
}