jfranck@1560: /* jfranck@1560: * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. jfranck@1560: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jfranck@1560: * jfranck@1560: * This code is free software; you can redistribute it and/or modify it jfranck@1560: * under the terms of the GNU General Public License version 2 only, as jfranck@1560: * published by the Free Software Foundation. jfranck@1560: * jfranck@1560: * This code is distributed in the hope that it will be useful, but WITHOUT jfranck@1560: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jfranck@1560: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jfranck@1560: * version 2 for more details (a copy is included in the LICENSE file that jfranck@1560: * accompanied this code). jfranck@1560: * jfranck@1560: * You should have received a copy of the GNU General Public License version jfranck@1560: * 2 along with this work; if not, write to the Free Software Foundation, jfranck@1560: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jfranck@1560: * jfranck@1560: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jfranck@1560: * or visit www.oracle.com if you need additional information or have any jfranck@1560: * questions. jfranck@1560: */ jfranck@1560: jfranck@1560: /* jfranck@1560: * @test jfranck@1560: * @bug 8004822 jfranck@1560: * @author mnunez jfranck@1560: * @summary Language model api test basics for repeating annotations jfranck@1560: * @library /tools/javac/lib jfranck@1560: * @library supportingAnnotations jjg@1721: * @ignore 8013407: test failures for repeating annotations jfranck@1560: * @build JavacTestingAbstractProcessor ElementRepAnnoTester jfranck@1560: * @compile -processor ElementRepAnnoTester -proc:only jfranck@1560: * MixRepeatableAndOfficialContainerInheritedB2Test.java jfranck@1560: */ jfranck@1560: jfranck@1560: @BarInheritedContainer(value = {@BarInherited(value = 1), @BarInherited(value = 2)}) jfranck@1560: @BarInherited(value = 3) jfranck@1560: class H {} jfranck@1560: jfranck@1560: @ExpectedBase( jfranck@1560: value = BarInherited.class, jfranck@1560: getAnnotation = "@BarInherited(value=0)", jfranck@1560: getAnnotationsByType = {"@BarInherited(value=0)"}, jfranck@1560: getAllAnnotationMirrors = { jfranck@1560: "@BarInherited(0)", jfranck@1560: "@BarInheritedContainer({@BarInherited(1), @BarInherited(2)})", jfranck@1560: "ExpectedBase", jfranck@1560: "ExpectedContainer" jfranck@1560: }, jfranck@1560: getAnnotationMirrors = { jfranck@1560: "@BarInherited(0)", jfranck@1560: "ExpectedBase", jfranck@1560: "ExpectedContainer" jfranck@1560: }) jfranck@1560: @ExpectedContainer( jfranck@1560: value = BarInheritedContainer.class, jfranck@1560: getAnnotation = "@BarInheritedContainer(" jfranck@1560: + "value=[@BarInherited(value=1), @BarInherited(value=2)])", jfranck@1560: getAnnotationsByType = {"@BarInheritedContainer(" jfranck@1560: + "value=[@BarInherited(value=1), @BarInherited(value=2)])"}) jfranck@1560: @BarInherited(value = 0) jfranck@1560: class MixRepeatableAndOfficialContainerInheritedB2Test extends H {}