langtools/test/tools/javac/annotations/neg/ArrayLit.java
author sogoel
Thu, 28 Aug 2014 23:42:16 -0700
changeset 26273 2663ad455e00
parent 5520 86e4b9a9da40
permissions -rw-r--r--
8049126: golden files for annotations test in tools/java dir Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
26273
2663ad455e00 8049126: golden files for annotations test in tools/java dir
sogoel
parents: 5520
diff changeset
     2
 * @test /nodynamiccopyright/
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * @bug 4901266
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 * @summary JSR175 (4): don't allow "new" in annotations
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * @author gafter
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 *
26273
2663ad455e00 8049126: golden files for annotations test in tools/java dir
sogoel
parents: 5520
diff changeset
     7
 * @compile/fail/ref=ArrayLit.out -XDrawDiagnostics  ArrayLit.java
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
@ArrayLit(new int[] {1, 2, 3})
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
@interface ArrayLit {
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
    int[] value();
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
}