< prev index next >
test/langtools/tools/javac/diags/examples/SwitchExpressions.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.expressions
-// 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 {
int m(int i) {
return switch (i) {
default: yield -1;
< prev index next >