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

19 lines
277 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4987844
* @summary compiler crash with ill-formed annotation
* @author gafter
*
* @compile/fail/ref=GenLit1.out -XDrawDiagnostics GenLit1.java
*/
package genLit1;
@interface X {
Class value();
}
@X(Z.class)
class Y<Z> {
}