langtools/test/tools/javac/failover/FailOver15.java
author vromero
Tue, 06 Sep 2016 17:04:43 -0700
changeset 40835 6ab9ed1abc46
parent 39601 5b37e511ae4b
permissions -rw-r--r--
8162546: change hidden options -Xdebug to --debug, -XshouldStop to --should-stop, and -diags to --diags Reviewed-by: mcimadamore

/*
 * @test /nodynamiccopyright/
 * @bug 6970584 7060926
 * @summary Attr.PostAttrAnalyzer misses a case
 *
 * @compile/fail/ref=FailOver15.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver15.java
 */

class Test {
    void m() {
        new UnknownClass<String, Void>() {
            public String getString() {
                String s = "";
                s += "more";
                return s;
            }
        }
    }
}