jdk-24/test/langtools/tools/javac/generics/GenLit2.java
2017-09-12 19:03:39 +02:00

15 lines
268 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4942201
* @summary java allows class literal on generic type parameter array
* @author gafter
*
* @compile/fail/ref=GenLit2.out -XDrawDiagnostics GenLit2.java
*/
package genLit2;
class U<T> {
Class t = T[].class;
}