Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
18 lines
277 B
Java
18 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> {
|
|
}
|