langtools/test/tools/javac/annotations/neg/NoObjectMethods.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

/*
 * @test    /nodynamiccopyright/
 * @bug     6393539
 * @summary no compile-time error for clone, etc. in annotation type
 * @author  Peter von der Ah\u00e9
 * @compile/fail/ref=NoObjectMethods.out -XDrawDiagnostics  NoObjectMethods.java
 */

public @interface NoObjectMethods {
    int clone();
}