test/tools/javac/annotations/typeAnnotations/failures/IndexArray.java

changeset 2134
b0c086cd4520
parent 1521
71f35e4b93a5
child 2525
2eb010b6cb22
     1.1 --- a/test/tools/javac/annotations/typeAnnotations/failures/IndexArray.java	Tue Oct 15 22:15:35 2013 +0200
     1.2 +++ b/test/tools/javac/annotations/typeAnnotations/failures/IndexArray.java	Tue Oct 15 15:57:13 2013 -0700
     1.3 @@ -5,9 +5,12 @@
     1.4   * @author Mahmood Ali
     1.5   * @compile/fail/ref=IndexArray.out -XDrawDiagnostics IndexArray.java
     1.6   */
     1.7 +import java.lang.annotation.*;
     1.8 +
     1.9  class IndexArray {
    1.10    int[] var;
    1.11    int a = var @A [1];
    1.12  }
    1.13  
    1.14 +@Target(ElementType.TYPE_USE)
    1.15  @interface A { }

mercurial