jdk-24/test/langtools/tools/javac/generics/UncheckedArray.java
2017-09-12 19:03:39 +02: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][];
}
}