test/langtools/tools/javac/processing/model/element/repeatingAnnotations/MixRepeatableAndOfficialContainerInheritedA1Test.java
changeset 55387 761b86d5563d
parent 47216 71c04702a3d5
equal deleted inserted replaced
55386:2f4e214781a1 55387:761b86d5563d
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    33  * @build   JavacTestingAbstractProcessor ElementRepAnnoTester
    33  * @build   JavacTestingAbstractProcessor ElementRepAnnoTester
    34  * @compile -processor ElementRepAnnoTester -proc:only
    34  * @compile -processor ElementRepAnnoTester -proc:only
    35  * MixRepeatableAndOfficialContainerInheritedA1Test.java
    35  * MixRepeatableAndOfficialContainerInheritedA1Test.java
    36  */
    36  */
    37 
    37 
    38 @BarInherited(value = 0)
    38 @BarInherited(0)
    39 class E {}
    39 class E {}
    40 
    40 
    41 @ExpectedBase(
    41 @ExpectedBase(
    42         value = BarInherited.class,
    42         value = BarInherited.class,
    43         getAnnotation = "@BarInherited(value=0)",
    43         getAnnotation = "@BarInherited(0)",
    44         getAnnotationsByType = {
    44         getAnnotationsByType = {
    45             "@BarInherited(value=1)",
    45             "@BarInherited(1)",
    46             "@BarInherited(value=2)"
    46             "@BarInherited(2)"
    47         },
    47         },
    48         getAllAnnotationMirrors = {
    48         getAllAnnotationMirrors = {
    49             "@BarInherited(0)",
    49             "@BarInherited(0)",
    50             "@BarInheritedContainer({@BarInherited(1), @BarInherited(2)})",
    50             "@BarInheritedContainer({@BarInherited(1), @BarInherited(2)})",
    51             "ExpectedBase",
    51             "ExpectedBase",
    57             "ExpectedContainer"
    57             "ExpectedContainer"
    58         })
    58         })
    59 @ExpectedContainer(
    59 @ExpectedContainer(
    60         value = BarInheritedContainer.class,
    60         value = BarInheritedContainer.class,
    61         getAnnotation = "@BarInheritedContainer("
    61         getAnnotation = "@BarInheritedContainer("
    62         + "value={@BarInherited(value=1), @BarInherited(value=2)})",
    62         + "{@BarInherited(1), @BarInherited(2)})",
    63         getAnnotationsByType = {"@BarInheritedContainer("
    63         getAnnotationsByType = {"@BarInheritedContainer("
    64                 + "value={@BarInherited(value=1), @BarInherited(value=2)})"})
    64                 + "{@BarInherited(1), @BarInherited(2)})"})
    65 @BarInheritedContainer(value = {@BarInherited(value = 1), @BarInherited(value = 2)})
    65 @BarInheritedContainer({@BarInherited(1), @BarInherited(2)})
    66 class MixRepeatableAndOfficialContainerInheritedA1Test extends E {}
    66 class MixRepeatableAndOfficialContainerInheritedA1Test extends E {}