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

15 lines
268 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 4942201
* @summary java allows class literal on generic type parameter array
* @author gafter
*
* @compile/fail/ref=GenLit2.out -XDrawDiagnostics GenLit2.java
2007-12-01 00:00:00 +00:00
*/
package genLit2;
class U<T> {
Class t = T[].class;
}