/
githubmirror
/
panama-vector
Обзор
Документация
Войти
/
githubmirror
/
panama-vector
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/langtools/tools/javac/annotations/clinit/AnnoWithClinitFail.java
22 строки
603 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/ * @bug 8013485 * @summary Annotations that gets a clinit can't be verified for correct elements in a second compilation unit * @compile/fail/ref=AnnoWithClinitFail.out -XDrawDiagnostics AnnoWithClinitFail.java */ public @interface AnnoWithClinitFail { Foo f = new Foo(); String foo(); String bar() default "bar"; @AnnoWithClinitFail static class C {} // this is in the same CU so there wont be a // <clinit> when the this anno instance is checked class Foo {} } @AnnoWithClinitFail class TestAnnoWithClinitFail { }