/
githubmirror
/
panama-vector
Обзор
Документация
Войти
/
githubmirror
/
panama-vector
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/langtools/tools/javac/annotations/repeatingAnnotations/RepeatingTargetNotAllowed.java
21 строка
451 B
Guoxiong Li
8258525: Some existing tests should use /nodynamiccopyright/ instead of the standard header
30 дек 2020, 20:20
30 дек 2020, 20:20
8435f0d
Код
Авторство
О чём код?
/** * @test /nodynamiccopyright/ * @summary Container annotation is not checked for semantic correctness * @bug 8001114 * * @compile/fail/ref=RepeatingTargetNotAllowed.out -XDrawDiagnostics RepeatingTargetNotAllowed.java */ import java.lang.annotation.*; @Repeatable(Foos.class) @interface Foo {} @Target(ElementType.ANNOTATION_TYPE) @interface Foos { Foo[] value(); } public class RepeatingTargetNotAllowed { @Foo @Foo int f = 0; }