jdk-24/langtools/test/tools/javac/generics/UncheckedArray.java

17 lines
303 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 4992316
* @summary compiler allows new array of array of type parameter
* @author gafter
*
* @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][];
}
}