< prev index next >

test/langtools/tools/javac/switchexpr/SwitchExpressionNoValue.java

Print this page
@@ -23,10 +23,11 @@
  
  /*
   * @test
   * @bug 8276836
   * @summary Check that switch expression with no value does not crash the compiler.
+  * @enablePreview
   * @library /tools/lib /tools/javac/lib
   * @modules
   *      java.base/jdk.internal
   *      jdk.compiler/com.sun.tools.javac.api
   *      jdk.compiler/com.sun.tools.javac.file
< prev index next >