1 /* 2 * @test /nodynamiccopyright/ 3 * @bug 4959929 4 * @summary unclear diagnostic for "new T()" 5 * @author never 6 * 7 * @compile/fail/ref=NewGeneric.out -XDrawDiagnostics NewGeneric.java 8 */ 9 10 11 public class NewGeneric { 12 private static class Type<T> { Type()13 Type() { T t = new T(); } 14 } 15 } 16