langtools/test/tools/javac/BadAnnotation.java
author sogoel
Fri, 29 Aug 2014 00:42:42 -0700
changeset 26274 02a5b23ee21c
parent 5520 86e4b9a9da40
permissions -rw-r--r--
8055074: Group 9a: golden files for tests in tools/javac dir Reviewed-by: jjg

/*
 * @test /nodynamiccopyright/
 * @bug 5014305
 * @summary Malformed annotation type with varargs parameter crashes javac
 *
 * @compile/fail/ref=BadAnnotation.out -XDrawDiagnostics  BadAnnotation.java
 */

   @BadAnnotation(1)
   @interface BadAnnotation {
           int value(int... illegal);
   }