diff -r 74f0c05c51eb -r ca32f2986301 test/tools/javac/generics/diamond/neg/Neg08.java --- a/test/tools/javac/generics/diamond/neg/Neg08.java Mon Mar 07 14:11:48 2011 +0000 +++ b/test/tools/javac/generics/diamond/neg/Neg08.java Mon Mar 07 14:31:50 2011 +0000 @@ -1,30 +1,15 @@ /* * @test /nodynamiccopyright/ - * @bug 6939620 6894753 + * @bug 7020043 7020044 * - * @summary Switch to 'complex' diamond inference scheme - * @author mcimadamore + * @summary Check that diamond is not allowed with non-generic class types + * @author Rémi Forax * @compile/fail/ref=Neg08.out Neg08.java -XDrawDiagnostics * */ class Neg08 { - static class Foo { - Foo(X x) { } - } - - static class DoubleFoo { - DoubleFoo(X x,Y y) { } - } - - static class TripleFoo { - TripleFoo(X x,Y y,Z z) { } - } - - Foo fi = new Foo<>(1); - Foo fw = new Foo<>(fi); - Foo fd = new Foo<>(3.0); - DoubleFoo dw = new DoubleFoo<>(fi,fd); - Foo fs = new Foo<>("one"); - TripleFoo tw = new TripleFoo<>(fi,fd,fs); + public static void main(String[] args) { + String s = new String<>("foo"); + } }