test/tools/javac/failover/FailOver15.java

Mon, 23 Sep 2013 10:42:38 +0200

author
alundblad
date
Mon, 23 Sep 2013 10:42:38 +0200
changeset 2047
5f915a0c9615
parent 0
959103a6100f
permissions
-rw-r--r--

6386236: Please rename com.sun.tools.javac.util.ListBuffer.lb()
Summary: Static factory method ListBuffer.lb removed. Replaced by constructor calls.
Reviewed-by: jfranck, jjg

     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