2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-01-27 15:11:57 -08:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4901262
|
|
|
|
* @summary Constraints regarding annotation defaults
|
|
|
|
* @author gafter
|
|
|
|
*
|
2015-01-27 15:11:57 -08:00
|
|
|
* @compile A.java B.java C.java
|
|
|
|
* @compile/fail/ref=Derr.out -XDrawDiagnostics Derr.java
|
|
|
|
* @compile/fail/ref=Eerr.out -XDrawDiagnostics Eerr.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public @interface A {
|
|
|
|
int x();
|
|
|
|
int y() default 3;
|
|
|
|
}
|