[code-reflection] Integrated: Unreachable switch expression block

Paul Sandoz psandoz at openjdk.org
Wed Oct 23 17:44:29 UTC 2024


On Tue, 22 Oct 2024 21:48:14 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> This fixes the generated code model for an unreachable edge case discussed in PR #257:
> 
> String s = switch (n) {
>     case 3 -> { while (true); }
>     default -> " Hello!";
> };

This pull request has now been integrated.

Changeset: 24149a25
Author:    Paul Sandoz <psandoz at openjdk.org>
URL:       https://git.openjdk.org/babylon/commit/24149a258ca341f427e9782bf6210581be8a3a6d
Stats:     50 lines in 2 files changed: 42 ins; 7 del; 1 mod

Unreachable switch expression block

Reviewed-by: mcimadamore

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

PR: https://git.openjdk.org/babylon/pull/260


More information about the babylon-dev mailing list