langtools/test/tools/javac/Parens1.java
author shade
Tue, 02 Feb 2016 18:15:15 +0300
changeset 35639 f34e7e8b4eac
parent 26662 7cf828d7c8fc
permissions -rw-r--r--
8148787: StringConcatFactory exactness check produces bad bytecode when a non-arg concat is requested Reviewed-by: vlivanov, psandoz

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