test/langtools/tools/javac/processing/model/element/repeatingAnnotations/SingularInheritedATest.java
changeset 55387 761b86d5563d
parent 47216 71c04702a3d5
equal deleted inserted replaced
55386:2f4e214781a1 55387:761b86d5563d
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2015, 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.
    32  *          jdk.compiler
    32  *          jdk.compiler
    33  * @build   JavacTestingAbstractProcessor ElementRepAnnoTester
    33  * @build   JavacTestingAbstractProcessor ElementRepAnnoTester
    34  * @compile -processor ElementRepAnnoTester -proc:only SingularInheritedATest.java
    34  * @compile -processor ElementRepAnnoTester -proc:only SingularInheritedATest.java
    35  */
    35  */
    36 
    36 
    37 @FooInherited(value = 0)
    37 @FooInherited(0)
    38 class A {}
    38 class A {}
    39 
    39 
    40 @ExpectedBase(
    40 @ExpectedBase(
    41         value = FooInherited.class,
    41         value = FooInherited.class,
    42         getAnnotation = "@FooInherited(value=0)",
    42         getAnnotation = "@FooInherited(0)",
    43         getAnnotationsByType = {"@FooInherited(value=0)"},
    43         getAnnotationsByType = {"@FooInherited(0)"},
    44         getAllAnnotationMirrors = {
    44         getAllAnnotationMirrors = {
    45             "@FooInherited(0)",
    45             "@FooInherited(0)",
    46             "ExpectedBase",
    46             "ExpectedBase",
    47             "ExpectedContainer"
    47             "ExpectedContainer"
    48         },
    48         },