/
githubmirror
/
panama-vector
Обзор
Документация
Войти
/
githubmirror
/
panama-vector
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/langtools/tools/javac/StringsInSwitch/NonConstantLabel.java
17 строк
431 B
Joe Darcy
8206439: Remove javac -source/-target 6 from langtools regression tests
06 июл 2018, 20:28
06 июл 2018, 20:28
03597d0
Код
Авторство
О чём код?
/* * @test /nodynamiccopyright/ * @bug 6827009 * @summary Check for non-constant case labels. * @compile/fail/ref=NonConstantLabel.out -XDrawDiagnostics NonConstantLabel.java */ class NonConstantLabel { String m(String s) { String fauxConstant = "Goodbye Cruel World"; switch(s) { case "Hello World": return(s); case fauxConstant: return (s + s); } } }