test/tools/javac/generics/diamond/neg/Neg07.java

changeset 914
ca32f2986301
parent 537
9d9d08922405
child 2525
2eb010b6cb22
     1.1 --- a/test/tools/javac/generics/diamond/neg/Neg07.java	Mon Mar 07 14:11:48 2011 +0000
     1.2 +++ b/test/tools/javac/generics/diamond/neg/Neg07.java	Mon Mar 07 14:31:50 2011 +0000
     1.3 @@ -1,8 +1,8 @@
     1.4  /*
     1.5   * @test /nodynamiccopyright/
     1.6 - * @bug 6939620
     1.7 + * @bug 6939620 7020044
     1.8   *
     1.9 - * @summary  Switch to 'complex' diamond inference scheme
    1.10 + * @summary  Check that diamond works where LHS is supertype of RHS (1-ary constructor)
    1.11   * @author mcimadamore
    1.12   * @compile/fail/ref=Neg07.out Neg07.java -XDrawDiagnostics
    1.13   *
    1.14 @@ -15,5 +15,4 @@
    1.15     }
    1.16  
    1.17     SuperFoo<String> sf1 = new Foo<>("");
    1.18 -   SuperFoo<String> sf2 = new Foo<>("") {};
    1.19  }

mercurial