5b76a0d216
Causes javac to reject static and default method declarations inside an annotation Reviewed-by: jjg
10 lines
240 B
Java
10 lines
240 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8022322
|
|
* @summary Default methods are not allowed in an annotation.
|
|
* @compile/fail/ref=NoDefault.out -XDrawDiagnostics NoDefault.java
|
|
*/
|
|
@interface NoDefault {
|
|
default int m() {return 0;}
|
|
}
|