jdk-24/test/langtools/tools/javac/NewGeneric.java

16 lines
294 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
2007-12-01 00:00:00 +00:00
* @bug 4959929
* @summary unclear diagnostic for "new T()"
* @author never
*
* @compile/fail/ref=NewGeneric.out -XDrawDiagnostics NewGeneric.java
2007-12-01 00:00:00 +00:00
*/
public class NewGeneric {
private static class Type<T> {
Type() { T t = new T(); }
}
}