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