Integrated: 8238173: jshell - switch statement with a single default not return cause syntax error

Jan Lahoda jlahoda at openjdk.java.net
Thu Apr 29 14:58:02 UTC 2021


On Wed, 24 Mar 2021 11:43:19 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> Improving disambiguation between switch expressions and switch statements: switches that do not yield a value from any arm should not be considered switch expressions; switches in source levels that don't support switch expressions should always be considered switch statements.

This pull request has now been integrated.

Changeset: 8072ea56
Author:    Jan Lahoda <jlahoda at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/8072ea56283ecac0d8bf486cdc4e1ff649bf7927
Stats:     56 lines in 5 files changed: 32 ins; 22 del; 2 mod

8238173: jshell - switch statement with a single default not return cause syntax error

Reviewed-by: vromero

-------------

PR: https://git.openjdk.java.net/jdk/pull/3173


More information about the kulla-dev mailing list