16 lines
340 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 4901262
* @summary Constraints regarding annotation defaults
* @author gafter
*
* @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;
}