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