test/tools/javac/annotations/repeatingAnnotations/MissingValueMethod.java

changeset 1492
df694c775e8a
parent 1386
bf76f4190ef8
child 2525
2eb010b6cb22
     1.1 --- a/test/tools/javac/annotations/repeatingAnnotations/MissingValueMethod.java	Mon Jan 14 19:52:36 2013 +0100
     1.2 +++ b/test/tools/javac/annotations/repeatingAnnotations/MissingValueMethod.java	Mon Jan 14 13:50:01 2013 -0800
     1.3 @@ -6,13 +6,11 @@
     1.4   * @compile/fail/ref=MissingValueMethod.out -XDrawDiagnostics MissingValueMethod.java
     1.5   */
     1.6  
     1.7 -import java.lang.annotation.ContainedBy;
     1.8 -import java.lang.annotation.ContainerFor;
     1.9 +import java.lang.annotation.Repeatable;
    1.10  
    1.11 -@ContainedBy(FooContainer.class)
    1.12 +@Repeatable(FooContainer.class)
    1.13  @interface Foo {}
    1.14  
    1.15 -@ContainerFor(Foo.class)
    1.16  @interface FooContainer{
    1.17      Foo[] values();  // wrong method name
    1.18  }

mercurial