1/* 2 * @test /nodynamiccopyright/ 3 * @bug 4942201 4 * @summary java allows class literal on generic type parameter array 5 * @author gafter 6 * 7 * @compile/fail/ref=GenLit2.out -XDrawDiagnostics GenLit2.java 8 */ 9 10package genLit2; 11 12class U<T> { 13 Class t = T[].class; 14} 15