jjg@1386: /** jjg@1386: * @test /nodynamiccopyright/ jjg@1386: * @bug 7169362 jjg@1386: * @author sogoel jjg@1386: * @summary Wrong return type for value() in ContainerAnnotation jjg@1386: * @compile/fail/ref=WrongReturnTypeForValue.out -XDrawDiagnostics WrongReturnTypeForValue.java jjg@1386: */ jjg@1386: jjg@1492: import java.lang.annotation.Repeatable; jjg@1386: jjg@1492: @Repeatable(FooContainer.class) jjg@1386: @interface Foo { jjg@1386: int getNumbers(); jjg@1386: } jjg@1386: jjg@1386: @interface FooContainer{ jjg@1386: Foo value(); // wrong return type jjg@1386: } jjg@1386: jjg@1386: @Foo @Foo jjg@1386: public class WrongReturnTypeForValue {}