< prev index next >

test/langtools/tools/javac/diags/examples/SwitchRules.java

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

*** 20,31 **** * or visit www.oracle.com if you need additional information or have any * questions. */ // key: compiler.misc.feature.switch.rules ! // key: compiler.warn.preview.feature.use.plural ! // options: --enable-preview -source ${jdk.version} -Xlint:preview class SwitchExpressions { void m(int i) { switch (i) { default -> { break; } --- 20,31 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ // key: compiler.misc.feature.switch.rules ! // key: compiler.err.feature.not.supported.in.source.plural ! // options: -Xlint:-options -source 13 class SwitchExpressions { void m(int i) { switch (i) { default -> { break; }
< prev index next >