test/langtools/tools/javac/generics/GenLit1.java
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 30719 langtools/test/tools/javac/generics/GenLit1.java@91834c070ba5
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse

/*
 * @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> {
}