test/langtools/tools/javac/generics/GenLit1.java
author vromero
Tue, 24 Apr 2018 08:13:30 -0700
changeset 49872 0798eab12791
parent 47216 71c04702a3d5
permissions -rw-r--r--
8201281: Truncated error message with Incompatible : null Reviewed-by: mcimadamore

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