21 lines
436 B
Java
Raw Normal View History

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