< prev index next >

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

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

@@ -23,12 +23,12 @@
 
 /*
  * @test
  * @bug 8206986
  * @summary Verify behavior when an intersection type is inferred for switch expression.
- * @compile --enable-preview -source ${jdk.version} ExpressionSwitchIntersectionTypes.java
- * @run main/othervm --enable-preview ExpressionSwitchIntersectionTypes
+ * @compile ExpressionSwitchIntersectionTypes.java
+ * @run main ExpressionSwitchIntersectionTypes
  */
 
 public class ExpressionSwitchIntersectionTypes<X  extends java.io.Serializable & Runnable> {
 
     void test1(int i, X x) {
< prev index next >