2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-09-05 23:51:39 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4959929
|
|
|
|
* @summary unclear diagnostic for "new T()"
|
|
|
|
* @author never
|
|
|
|
*
|
2014-09-05 23:51:39 +00:00
|
|
|
* @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(); }
|
|
|
|
}
|
|
|
|
}
|