test/tools/javac/diags/examples/RepeatingAnnotationAndContainer.java

changeset 1492
df694c775e8a
parent 1313
873ddd9f4900
child 2525
2eb010b6cb22
     1.1 --- a/test/tools/javac/diags/examples/RepeatingAnnotationAndContainer.java	Mon Jan 14 19:52:36 2013 +0100
     1.2 +++ b/test/tools/javac/diags/examples/RepeatingAnnotationAndContainer.java	Mon Jan 14 13:50:01 2013 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -21,14 +21,13 @@
    1.11   * questions.
    1.12   */
    1.13  
    1.14 -// key: compiler.err.invalid.containedby.annotation.repeated.and.container.present
    1.15 +// key: compiler.err.invalid.repeatable.annotation.repeated.and.container.present
    1.16  
    1.17  import java.lang.annotation.*;
    1.18  
    1.19 -@ContainedBy(Annos.class)
    1.20 +@Repeatable(Annos.class)
    1.21  @interface Anno { }
    1.22  
    1.23 -@ContainerFor(Anno.class)
    1.24  @interface Annos { Anno[] value(); }
    1.25  
    1.26  @Anno

mercurial