Integrated: 8267119: switch expressions lack support for deferred type-checking

Jan Lahoda jlahoda at openjdk.java.net
Fri May 21 14:13:47 UTC 2021


On Mon, 17 May 2021 11:22:28 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> Similarly to lambdas with block body looking at expression in return statements, we need `CheckStuckPolicy` to look at all `yield` values in a switch expression, to determine the types correctly, as pointed out in the bugreport.

This pull request has now been integrated.

Changeset: ec8a8097
Author:    Jan Lahoda <jlahoda at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/ec8a8097c309920982b0b8253a76c7c938f1f48d
Stats:     44 lines in 3 files changed: 39 ins; 0 del; 5 mod

8267119: switch expressions lack support for deferred type-checking

Reviewed-by: mcimadamore

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

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


More information about the compiler-dev mailing list