jjg@1386: /* jjg@1386: * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. jjg@1386: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jjg@1386: * jjg@1386: * This code is free software; you can redistribute it and/or modify it jjg@1386: * under the terms of the GNU General Public License version 2 only, as jjg@1386: * published by the Free Software Foundation. jjg@1386: * jjg@1386: * This code is distributed in the hope that it will be useful, but WITHOUT jjg@1386: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jjg@1386: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jjg@1386: * version 2 for more details (a copy is included in the LICENSE file that jjg@1386: * accompanied this code). jjg@1386: * jjg@1386: * You should have received a copy of the GNU General Public License version jjg@1386: * 2 along with this work; if not, write to the Free Software Foundation, jjg@1386: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jjg@1386: * jjg@1386: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jjg@1386: * or visit www.oracle.com if you need additional information or have any jjg@1386: * questions. jjg@1386: */ jjg@1386: jjg@1386: /** jjg@1386: * @test jjg@1386: * @bug 7169362 jjg@1386: * @author sogoel jjg@1386: * @summary ContainerType can have its own container jjg@1386: * @compile MultiLevelRepeatableAnno.java jjg@1386: */ jjg@1386: jjg@1386: import java.lang.annotation.ContainedBy; jjg@1386: import java.lang.annotation.ContainerFor; jjg@1386: jjg@1386: @ContainedBy(FooContainer.class) jjg@1386: @interface Foo {} jjg@1386: jjg@1386: @ContainedBy(FooContainerContainer.class) jjg@1386: @ContainerFor(Foo.class) jjg@1386: @interface FooContainer { jjg@1386: Foo[] value(); jjg@1386: } jjg@1386: jjg@1386: @ContainerFor(FooContainer.class) jjg@1386: @interface FooContainerContainer { jjg@1386: FooContainer[] value(); jjg@1386: } jjg@1386: jjg@1386: @Foo @Foo jjg@1386: public class MultiLevelRepeatableAnno {} jjg@1386: