langtools/test/tools/javac/annotations/neg/Cycle2.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 4906400
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 * @summary (JSR175) compiler allows self-containing annotation types
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=Cycle2.out -XDrawDiagnostics  Cycle2.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
package cycle2;
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
@interface Bar {
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
    Baz baz();
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
}
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
@interface Baz {
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
    Bar bar();
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
}