langtools/test/tools/javac/processing/model/element/repeatingAnnotations/RepeatableOverrideATest.java
changeset 40231 ba38ad2dd137
parent 30730 d3ce7619db2c
equal deleted inserted replaced
40230:3e8975c92291 40231:ba38ad2dd137
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2016, 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.
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug     8004822 8007961
    26  * @bug     8004822 8007961 8163113
    27  * @author  mnunez
    27  * @author  mnunez
    28  * @summary Language model api test basics for repeating annotations
    28  * @summary Language model api test basics for repeating annotations
    29  * @library /tools/javac/lib
    29  * @library /tools/javac/lib
    30  * @library supportingAnnotations
    30  * @library supportingAnnotations
    31  * @modules java.compiler
    31  * @modules java.compiler
    54             "ExpectedContainer"
    54             "ExpectedContainer"
    55         })
    55         })
    56 @ExpectedContainer(
    56 @ExpectedContainer(
    57         value = BarInheritedContainer.class,
    57         value = BarInheritedContainer.class,
    58         getAnnotation = "@BarInheritedContainer("
    58         getAnnotation = "@BarInheritedContainer("
    59         + "value=[@BarInherited(value=1), @BarInherited(value=2)])",
    59         + "value={@BarInherited(value=1), @BarInherited(value=2)})",
    60         getAnnotationsByType = {"@BarInheritedContainer("
    60         getAnnotationsByType = {"@BarInheritedContainer("
    61                 + "value=[@BarInherited(value=1), @BarInherited(value=2)])"})
    61                 + "value={@BarInherited(value=1), @BarInherited(value=2)})"})
    62 @BarInherited(value = 3)
    62 @BarInherited(value = 3)
    63 class RepeatableOverrideATest extends B {}
    63 class RepeatableOverrideATest extends B {}