< prev index next >

test/langtools/tools/javac/processing/model/element/repeatingAnnotations/MixSingularAndUnofficialContainerInheritedA2Test.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 33,49 **** * @build JavacTestingAbstractProcessor ElementRepAnnoTester * @compile -processor ElementRepAnnoTester -proc:only * MixSingularAndUnofficialContainerInheritedA2Test.java */ ! @FooInherited(value = 0) class K {} @ExpectedBase( value = FooInherited.class, ! getAnnotation = "@FooInherited(value=3)", ! getAnnotationsByType = {"@FooInherited(value=3)"}, getAllAnnotationMirrors = { "@FooInherited(3)", "@UnofficialInheritedContainer({@FooInherited(1), @FooInherited(2)})", "ExpectedBase", "ExpectedContainer" --- 33,49 ---- * @build JavacTestingAbstractProcessor ElementRepAnnoTester * @compile -processor ElementRepAnnoTester -proc:only * MixSingularAndUnofficialContainerInheritedA2Test.java */ ! @FooInherited(0) class K {} @ExpectedBase( value = FooInherited.class, ! getAnnotation = "@FooInherited(3)", ! getAnnotationsByType = {"@FooInherited(3)"}, getAllAnnotationMirrors = { "@FooInherited(3)", "@UnofficialInheritedContainer({@FooInherited(1), @FooInherited(2)})", "ExpectedBase", "ExpectedContainer"
*** 55,65 **** "ExpectedContainer" }) @ExpectedContainer( value = UnofficialInheritedContainer.class, getAnnotation = "@UnofficialInheritedContainer(" ! + "value={@FooInherited(value=1), @FooInherited(value=2)})", getAnnotationsByType = {"@UnofficialInheritedContainer(" ! + "value={@FooInherited(value=1), @FooInherited(value=2)})"}) ! @UnofficialInheritedContainer(value = {@FooInherited(value = 1), @FooInherited(value = 2)}) ! @FooInherited(value = 3) class MixSingularAndUnofficialContainerInheritedA2Test extends K {} --- 55,65 ---- "ExpectedContainer" }) @ExpectedContainer( value = UnofficialInheritedContainer.class, getAnnotation = "@UnofficialInheritedContainer(" ! + "{@FooInherited(1), @FooInherited(2)})", getAnnotationsByType = {"@UnofficialInheritedContainer(" ! + "{@FooInherited(1), @FooInherited(2)})"}) ! @UnofficialInheritedContainer({@FooInherited(1), @FooInherited(2)}) ! @FooInherited(3) class MixSingularAndUnofficialContainerInheritedA2Test extends K {}
< prev index next >