test/tools/javac/annotations/neg/NoStaticAbstract.java

Thu, 31 Aug 2017 15:17:03 +0800

author
aoqi
date
Thu, 31 Aug 2017 15:17:03 +0800
changeset 2525
2eb010b6cb22
parent 0
959103a6100f
permissions
-rw-r--r--

merge

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug 8022322
     4  * @summary Static methods are not allowed in an annotation.
     5  * @compile/fail/ref=NoStaticAbstract.out -XDrawDiagnostics NoStaticAbstract.java
     6  */
     8 @interface NoStaticAbstract {
     9     static int m();
    10 }

mercurial