langtools/test/tools/javac/annotations/neg/DupTarget.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 4901271
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 * @summary <at>Target
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=DupTarget.out -XDrawDiagnostics  DupTarget.java
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
26273
2663ad455e00 8049126: golden files for annotations test in tools/java dir
sogoel
parents: 5520
diff changeset
    10
import static java.lang.annotation.ElementType.*;
2663ad455e00 8049126: golden files for annotations test in tools/java dir
sogoel
parents: 5520
diff changeset
    11
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
@java.lang.annotation.Target({TYPE, FIELD, PACKAGE, FIELD})
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
@interface DupTarget {
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
}