/* * @test /nodynamiccopyright/ * @bug 7030150 * @summary Type inference for generic instance creation failed for formal type parameter * check that compiler rejects bad number of explicit type-arguments * @compile/fail/ref=Neg02.out -XDrawDiagnostics Neg02.java */ class Neg02 { static class Foo { Foo(T t) {} } Foo fi1 = new Foo<>(""); Foo fi2 = new Foo(""); }