Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
libcore
/
3789983e89c9de252ef546a1b98a732a7d066650
/
.
/
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
;}
}