11 lines
236 B
Java
Raw Normal View History

/*
* @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;}
}