< prev index next >
test/langtools/tools/javac/diags/examples/SwitchRules.java
Print this page
rev 56510 : 8232684: Make switch expressions final
Reviewed-by: TBD
@@ -20,12 +20,12 @@
* 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
+// 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 >