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