Sign in
android
/
platform
/
libcore
/
71f2c75111e87091616f0f3b86bea6c4d345dad1
/
.
/
test
/
langtools
/
tools
/
javac
/
annotations
/
neg
/
NoStatic.java
blob: 3a62dc7c748ec2f3d005e66fd916dbc0ff45a6ce [
file
] [
log
] [
blame
]
/*
* @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
;}
}