mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00

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