2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-08-12 17:31:31 -07: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
|
|
|
|
*
|
2014-08-12 17:31:31 -07:00
|
|
|
* @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();
|
|
|
|
}
|