< prev index next >

test/langtools/tools/javac/processing/model/element/repeatingAnnotations/RepeatableInheritedTest.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.
*** 32,51 **** * jdk.compiler * @build JavacTestingAbstractProcessor ElementRepAnnoTester * @compile -processor ElementRepAnnoTester -proc:only RepeatableInheritedTest.java */ ! @BarInherited(value = 1) ! @BarInherited(value = 2) class I {} @ExpectedBase( value = BarInherited.class, getAnnotation = "null", getAnnotationsByType = { ! "@BarInherited(value=1)", ! "@BarInherited(value=2)" }, getAllAnnotationMirrors = { "@BarInheritedContainer({@BarInherited(1), @BarInherited(2)})", "ExpectedBase", "ExpectedContainer" --- 32,51 ---- * jdk.compiler * @build JavacTestingAbstractProcessor ElementRepAnnoTester * @compile -processor ElementRepAnnoTester -proc:only RepeatableInheritedTest.java */ ! @BarInherited(1) ! @BarInherited(2) class I {} @ExpectedBase( value = BarInherited.class, getAnnotation = "null", getAnnotationsByType = { ! "@BarInherited(1)", ! "@BarInherited(2)" }, getAllAnnotationMirrors = { "@BarInheritedContainer({@BarInherited(1), @BarInherited(2)})", "ExpectedBase", "ExpectedContainer"
*** 55,63 **** "ExpectedContainer" }) @ExpectedContainer( value = BarInheritedContainer.class, getAnnotation = "@BarInheritedContainer(" ! + "value={@BarInherited(value=1), @BarInherited(value=2)})", getAnnotationsByType = {"@BarInheritedContainer(" ! + "value={@BarInherited(value=1), @BarInherited(value=2)})"}) class RepeatableInheritedTest extends I {} --- 55,63 ---- "ExpectedContainer" }) @ExpectedContainer( value = BarInheritedContainer.class, getAnnotation = "@BarInheritedContainer(" ! + "{@BarInherited(1), @BarInherited(2)})", getAnnotationsByType = {"@BarInheritedContainer(" ! + "{@BarInherited(1), @BarInherited(2)})"}) class RepeatableInheritedTest extends I {}
< prev index next >