8006119: update javac to follow latest spec for repeatable annotations

Reviewed-by: darcy
This commit is contained in:
Jonathan Gibbons 2013-01-14 13:50:01 -08:00
parent 9e3a121357
commit a2f594bf74
71 changed files with 243 additions and 675 deletions

View file

@ -6,13 +6,11 @@
* @compile/fail/ref=MissingValueMethod.out -XDrawDiagnostics MissingValueMethod.java
*/
import java.lang.annotation.ContainedBy;
import java.lang.annotation.ContainerFor;
import java.lang.annotation.Repeatable;
@ContainedBy(FooContainer.class)
@Repeatable(FooContainer.class)
@interface Foo {}
@ContainerFor(Foo.class)
@interface FooContainer{
Foo[] values(); // wrong method name
}