jdk-24/test/langtools/tools/javac/annotations/neg/Recovery1.java
2017-09-12 19:03:39 +02:00

21 lines
436 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4963450
* @summary Assertion error is thrown when an annotation class cannot be found.
* @author gafter
*
* @compile/fail/ref=Recovery1.out -XDrawDiagnostics Recovery1.java
*/
package recovery1;
@interface MyAnnotation {
String value();
Marker marker() default @Marker;
}
interface MyBean {
@MyAnnotation (value="baz", markerToo="not default")
public String getFoo();
}