jdk-24/langtools/test/tools/javac/generics/UncheckedArray.java
2015-05-15 16:53:42 -07:00

17 lines
303 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4992316
* @summary compiler allows new array of array of type parameter
* @author gafter
*
* @compile/fail/ref=UncheckedArray.out -XDrawDiagnostics UncheckedArray.java
*/
package unchecked.array;
class J<T> {
{
Object o = new T[3][];
}
}