test/tools/javac/annotations/neg/NoStatic.java@809a50f24d6f
test/tools/javac/annotations/neg/NoStatic.java
Mon, 23 Sep 2013 17:27:38 +0400
- author
- kizune
- date
- Mon, 23 Sep 2013 17:27:38 +0400
- changeset 2048
- 809a50f24d6f
- parent 0
-
959103a6100f
- permissions
- -rw-r--r--
7154966: CRs found to be in Fixed state with no test and no noreg- keyword.
Reviewed-by: ksrini
2 * @test /nodynamiccopyright/
4 * @summary Static methods are not allowed in an annotation.
5 * @compile/fail/ref=NoStatic.out -XDrawDiagnostics NoStatic.java
9 static int m() {return 0;}