2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-05-15 16:53:42 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4992316
|
|
|
|
* @summary compiler allows new array of array of type parameter
|
|
|
|
* @author gafter
|
|
|
|
*
|
2015-05-15 16:53:42 -07:00
|
|
|
* @compile/fail/ref=UncheckedArray.out -XDrawDiagnostics UncheckedArray.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package unchecked.array;
|
|
|
|
|
|
|
|
class J<T> {
|
|
|
|
{
|
|
|
|
Object o = new T[3][];
|
|
|
|
}
|
|
|
|
}
|