test/langtools/tools/javac/processing/model/element/repeatingAnnotations/MixSingularAndUnofficialContainerInheritedB1Test.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  * MixSingularAndUnofficialContainerInheritedB1Test.java
    35  * MixSingularAndUnofficialContainerInheritedB1Test.java
    36  */
    36  */
    37 
    37 
    38 @UnofficialInheritedContainer(value = {@FooInherited(value = 1),@FooInherited(value = 2)})
    38 @UnofficialInheritedContainer({@FooInherited(1),@FooInherited(2)})
    39 class J {}
    39 class J {}
    40 
    40 
    41 @ExpectedBase(
    41 @ExpectedBase(
    42         value = FooInherited.class,
    42         value = FooInherited.class,
    43         getAnnotation = "@FooInherited(value=0)",
    43         getAnnotation = "@FooInherited(0)",
    44         getAnnotationsByType = {"@FooInherited(value=0)"},
    44         getAnnotationsByType = {"@FooInherited(0)"},
    45         getAllAnnotationMirrors = {
    45         getAllAnnotationMirrors = {
    46             "@FooInherited(0)",
    46             "@FooInherited(0)",
    47             "@UnofficialInheritedContainer({@FooInherited(1), @FooInherited(2)})",
    47             "@UnofficialInheritedContainer({@FooInherited(1), @FooInherited(2)})",
    48             "ExpectedBase",
    48             "ExpectedBase",
    49             "ExpectedContainer"
    49             "ExpectedContainer"
    54             "ExpectedContainer"
    54             "ExpectedContainer"
    55         })
    55         })
    56 @ExpectedContainer(
    56 @ExpectedContainer(
    57         value = UnofficialInheritedContainer.class,
    57         value = UnofficialInheritedContainer.class,
    58         getAnnotation = "@UnofficialInheritedContainer("
    58         getAnnotation = "@UnofficialInheritedContainer("
    59         + "value={@FooInherited(value=1), @FooInherited(value=2)})",
    59         + "{@FooInherited(1), @FooInherited(2)})",
    60         getAnnotationsByType = {"@UnofficialInheritedContainer("
    60         getAnnotationsByType = {"@UnofficialInheritedContainer("
    61                 + "value={@FooInherited(value=1), @FooInherited(value=2)})"})
    61                 + "{@FooInherited(1), @FooInherited(2)})"})
    62 @FooInherited(value = 0)
    62 @FooInherited(0)
    63 class MixSingularAndUnofficialContainerInheritedB1Test extends J {}
    63 class MixSingularAndUnofficialContainerInheritedB1Test extends J {}