mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
14 lines
268 B
Java
14 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;
|
|
}
|