test/langtools/tools/javac/switchexpr/ExpressionSwitchEmbedding.java
changeset 59021 cfc7bb9a5a92
parent 55306 ea43db53de91
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 8214031 8214114
    26  * @bug 8214031 8214114
    27  * @summary Verify switch expressions embedded in various statements work properly.
    27  * @summary Verify switch expressions embedded in various statements work properly.
    28  * @compile --enable-preview -source ${jdk.version} ExpressionSwitchEmbedding.java
    28  * @compile ExpressionSwitchEmbedding.java
    29  * @run main/othervm --enable-preview ExpressionSwitchEmbedding
    29  * @run main ExpressionSwitchEmbedding
    30  */
    30  */
    31 
    31 
    32 public class ExpressionSwitchEmbedding {
    32 public class ExpressionSwitchEmbedding {
    33     public static void main(String... args) {
    33     public static void main(String... args) {
    34         new ExpressionSwitchEmbedding().run();
    34         new ExpressionSwitchEmbedding().run();