test/tools/javac/failover/FailOver15.java

Mon, 23 Sep 2013 17:27:38 +0400

author
kizune
date
Mon, 23 Sep 2013 17:27:38 +0400
changeset 2048
809a50f24d6f
parent 0
959103a6100f
permissions
-rw-r--r--

7154966: CRs found to be in Fixed state with no test and no noreg- keyword.
Reviewed-by: ksrini

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug 6970584 7060926
     4  * @summary Attr.PostAttrAnalyzer misses a case
     5  *
     6  * @compile/fail/ref=FailOver15.out -XDrawDiagnostics -XDshouldStopPolicy=FLOW -XDdev FailOver15.java
     7  */
     9 class Test {
    10     void m() {
    11         new UnknownClass<String, Void>() {
    12             public String getString() {
    13                 String s = "";
    14                 s += "more";
    15                 return s;
    16             }
    17         }
    18     }
    19 }

mercurial