Integrated: 8323502: javac crash with wrongly typed method block in Flow
Aggelos Biboudis
abimpoudis at openjdk.org
Mon Feb 5 09:03:07 UTC 2024
On Wed, 17 Jan 2024 15:45:09 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:
> The observation is that the `tree.target` of the RHS's `yield` was not set properly to point at the outer switch. As a result, the assertion was hit in `clearPendingExits` with a wrong set of pending exits.
>
> The cause was that the `tree` was not attributed since `visitSwitchExpression` was short-circuited to `return;` and `visitYield` was never setting the `target`. As a result, `resolveJump` was not actually resolving the jump correctly.
>
> thx @lahodaj for the help!
This pull request has now been integrated.
Changeset: df35462a
Author: Aggelos Biboudis <abimpoudis at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/df35462a4eaa6bbe1c2ea1edaedf74728f549090
Stats: 42 lines in 3 files changed: 39 ins; 0 del; 3 mod
8323502: javac crash with wrongly typed method block in Flow
Co-authored-by: Jan Lahoda <jlahoda at openjdk.org>
Reviewed-by: jlahoda
-------------
PR: https://git.openjdk.org/jdk/pull/17466
More information about the compiler-dev
mailing list