/
githubmirror
/
panama-vector
Обзор
Документация
Войти
/
githubmirror
/
panama-vector
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/langtools/tools/javac/DefiniteAssignment/T4717164.java
23 строки
635 B
Archie L. Cobbs
8163229: several regression tests have a main method that is never executed
17 янв 2023, 07:43
17 янв 2023, 07:43
382fe51
Код
Авторство
О чём код?
/* * @test /nodynamiccopyright/ * @bug 4717164 * @summary missing catch not reachable error when nested try-finally returns in finally * @author Neal Gafter (gafter) * * @compile/fail/ref=T4717164.out -XDrawDiagnostics T4717164.java */ class T4717164 { public static void meth() { try { try { throw new ClassNotFoundException(); } catch (ClassNotFoundException e) { throw e; } finally { return; // discards ClassNotFoundException } } catch (ClassNotFoundException e1) { // error: unreachable } } }