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

changeset 1492
df694c775e8a
parent 1386
bf76f4190ef8
child 2525
2eb010b6cb22
     1.1 --- a/test/tools/javac/annotations/repeatingAnnotations/WrongReturnTypeForValue.java	Mon Jan 14 19:52:36 2013 +0100
     1.2 +++ b/test/tools/javac/annotations/repeatingAnnotations/WrongReturnTypeForValue.java	Mon Jan 14 13:50:01 2013 -0800
     1.3 @@ -6,15 +6,13 @@
     1.4   * @compile/fail/ref=WrongReturnTypeForValue.out -XDrawDiagnostics WrongReturnTypeForValue.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      int getNumbers();
    1.15  }
    1.16  
    1.17 -@ContainerFor(Foo.class)
    1.18  @interface FooContainer{
    1.19      Foo value();     // wrong return type
    1.20  }

mercurial