mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-29 12:38:24 +00:00
12 lines
280 B
Java
12 lines
280 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 6393539
|
|
* @summary no compile-time error for clone, etc. in annotation type
|
|
* @author Peter von der Ah\u00e9
|
|
* @compile/fail/ref=NoClone.out -XDrawDiagnostics NoClone.java
|
|
*/
|
|
|
|
public @interface NoClone {
|
|
Object clone();
|
|
}
|