test/langtools/tools/javac/switchexpr/ExpressionSwitchCodeFromJLS.java
changeset 53878 4584d0331318
parent 53023 6879069d9d94
child 59021 cfc7bb9a5a92
equal deleted inserted replaced
53877:dfea18758dfa 53878:4584d0331318
     1 /*
     1 /*
     2  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 8206986
    26  * @bug 8206986
    27  * @summary Check switch expressions
    27  * @summary Check switch expressions
    28  * @compile --enable-preview -source 13 ExpressionSwitchCodeFromJLS.java
    28  * @compile --enable-preview -source ${jdk.version} ExpressionSwitchCodeFromJLS.java
    29  * @run main/othervm --enable-preview ExpressionSwitchCodeFromJLS
    29  * @run main/othervm --enable-preview ExpressionSwitchCodeFromJLS
    30  */
    30  */
    31 
    31 
    32 public class ExpressionSwitchCodeFromJLS {
    32 public class ExpressionSwitchCodeFromJLS {
    33     static void howMany(int k) {
    33     static void howMany(int k) {