< prev index next >

test/langtools/tools/javac/switchextra/SwitchStatementScopesIsolated.java

Print this page
rev 56806 : 8232684: Make switch expressions final
Reviewed-by: TBD

*** 1,10 **** /* * @test /nodynamiccopyright/ * @bug 8206986 * @summary Verify that scopes in rule cases are isolated. ! * @compile/fail/ref=SwitchStatementScopesIsolated.out -XDrawDiagnostics --enable-preview -source ${jdk.version} SwitchStatementScopesIsolated.java */ public class SwitchStatementScopesIsolated { private void scopesIsolated(int i) { --- 1,10 ---- /* * @test /nodynamiccopyright/ * @bug 8206986 * @summary Verify that scopes in rule cases are isolated. ! * @compile/fail/ref=SwitchStatementScopesIsolated.out -XDrawDiagnostics SwitchStatementScopesIsolated.java */ public class SwitchStatementScopesIsolated { private void scopesIsolated(int i) {
< prev index next >