2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-08-12 17:31:31 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 6393539
|
|
|
|
* @summary no compile-time error for clone, etc. in annotation type
|
|
|
|
* @author Peter von der Ah\u00e9
|
2014-08-12 17:31:31 -07:00
|
|
|
* @compile/fail/ref=NoObjectMethods.out -XDrawDiagnostics NoObjectMethods.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public @interface NoObjectMethods {
|
|
|
|
int clone();
|
|
|
|
}
|