test/langtools/tools/javac/processing/model/element/repeatingAnnotations/RepeatableOfficialContainerInheritedTest.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  * RepeatableOfficialContainerInheritedTest.java
    35  * RepeatableOfficialContainerInheritedTest.java
    36  */
    36  */
    37 
    37 
    38 @BarInheritedContainer(value = {@BarInherited(value = 1)})
    38 @BarInheritedContainer({@BarInherited(1)})
    39 @BarInheritedContainer(value = {@BarInherited(value = 2)})
    39 @BarInheritedContainer({@BarInherited(2)})
    40 class O {}
    40 class O {}
    41 
    41 
    42 @ExpectedBase(
    42 @ExpectedBase(
    43         value = BarInheritedContainer.class,
    43         value = BarInheritedContainer.class,
    44         getAnnotation = "null",
    44         getAnnotation = "null",
    45         getAnnotationsByType = {
    45         getAnnotationsByType = {
    46             "@BarInheritedContainer(value={@BarInherited(value=1)})",
    46             "@BarInheritedContainer({@BarInherited(1)})",
    47             "@BarInheritedContainer(value={@BarInherited(value=2)})"
    47             "@BarInheritedContainer({@BarInherited(2)})"
    48         },
    48         },
    49         getAllAnnotationMirrors = {
    49         getAllAnnotationMirrors = {
    50             "@BarInheritedContainerContainer("
    50             "@BarInheritedContainerContainer("
    51                 + "{@BarInheritedContainer({@BarInherited(1)}),"
    51                 + "{@BarInheritedContainer({@BarInherited(1)}),"
    52                 + " @BarInheritedContainer({@BarInherited(2)})})",
    52                 + " @BarInheritedContainer({@BarInherited(2)})})",
    58             "ExpectedContainer"
    58             "ExpectedContainer"
    59         })
    59         })
    60 @ExpectedContainer(
    60 @ExpectedContainer(
    61         value = BarInheritedContainerContainer.class,
    61         value = BarInheritedContainerContainer.class,
    62         getAnnotation = "@BarInheritedContainerContainer("
    62         getAnnotation = "@BarInheritedContainerContainer("
    63         + "value={@BarInheritedContainer(value={@BarInherited(value=1)}),"
    63         + "{@BarInheritedContainer({@BarInherited(1)}),"
    64         + " @BarInheritedContainer(value={@BarInherited(value=2)})})",
    64         + " @BarInheritedContainer({@BarInherited(2)})})",
    65         getAnnotationsByType = {"@BarInheritedContainerContainer("
    65         getAnnotationsByType = {"@BarInheritedContainerContainer("
    66                 + "value={@BarInheritedContainer(value={@BarInherited(value=1)}),"
    66                 + "{@BarInheritedContainer({@BarInherited(1)}),"
    67         + " @BarInheritedContainer(value={@BarInherited(value=2)})})"})
    67         + " @BarInheritedContainer({@BarInherited(2)})})"})
    68 class RepeatableOfficialContainerInheritedTest extends O {}
    68 class RepeatableOfficialContainerInheritedTest extends O {}