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

Maurizio Cimadamore mcimadamore at openjdk.java.net
Mon May 17 11:59:40 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.

Looks good

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

Marked as reviewed by mcimadamore (Reviewer).

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


More information about the compiler-dev mailing list