mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-29 12:38:24 +00:00
11 lines
236 B
Java
11 lines
236 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8022322
|
|
* @summary Static methods are not allowed in an annotation.
|
|
* @compile/fail/ref=NoStatic.out -XDrawDiagnostics NoStatic.java
|
|
*/
|
|
|
|
@interface NoStatic {
|
|
static int m() {return 0;}
|
|
}
|