< prev index next >
test/langtools/tools/javac/switchexpr/ExpressionSwitchEmbedding.java
Print this page
rev 56806 : 8232684: Make switch expressions final
Reviewed-by: TBD
*** 23,34 ****
/*
* @test
* @bug 8214031 8214114
* @summary Verify switch expressions embedded in various statements work properly.
! * @compile --enable-preview -source ${jdk.version} ExpressionSwitchEmbedding.java
! * @run main/othervm --enable-preview ExpressionSwitchEmbedding
*/
public class ExpressionSwitchEmbedding {
public static void main(String... args) {
new ExpressionSwitchEmbedding().run();
--- 23,34 ----
/*
* @test
* @bug 8214031 8214114
* @summary Verify switch expressions embedded in various statements work properly.
! * @compile ExpressionSwitchEmbedding.java
! * @run main ExpressionSwitchEmbedding
*/
public class ExpressionSwitchEmbedding {
public static void main(String... args) {
new ExpressionSwitchEmbedding().run();
< prev index next >