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

changeset 1492
df694c775e8a
parent 1313
873ddd9f4900
child 2525
2eb010b6cb22
equal deleted inserted replaced
1491:9f42a06a49c0 1492:df694c775e8a
1 /* 1 /*
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
28 * @bug 7151010 28 * @bug 7151010
29 */ 29 */
30 30
31 import java.lang.annotation.*; 31 import java.lang.annotation.*;
32 32
33 @ContainedBy(Foos.class) 33 @Repeatable(Foos.class)
34 @interface Foo {} 34 @interface Foo {}
35 35
36 @ContainerFor(Foo.class)
37 @interface Foos { 36 @interface Foos {
38 Foo[] value(); 37 Foo[] value();
39 } 38 }
40 39
41 @Foo 40 @Foo

mercurial