langtools/test/tools/javac/annotations/neg/NoClone.java
author sogoel
Tue, 12 Aug 2014 17:31:31 -0700
changeset 26095 8062f96d3ced
parent 5520 86e4b9a9da40
permissions -rw-r--r--
8049127: Group 8b - 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
/*
26095
8062f96d3ced 8049127: Group 8b - 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     6393539
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 * @summary no compile-time error for clone, etc. in annotation type
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * @author  Peter von der Ah\u00e9
26095
8062f96d3ced 8049127: Group 8b - golden files for annotations test in tools/java dir
sogoel
parents: 5520
diff changeset
     6
 * @compile/fail/ref=NoClone.out -XDrawDiagnostics  NoClone.java
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
public @interface NoClone {
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
    Object clone();
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
}