RFR: 8327839: Crash with unboxing and widening primitive conversion in switch
Jan Lahoda
jlahoda at openjdk.org
Fri Mar 15 13:03:54 UTC 2024
On Tue, 12 Mar 2024 14:06:11 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:
> In cases where the compiler needs to unbox a `long`, `float`, `double` and then run the exactness check, we were getting a crash. While the selector value is always boxed, the type (which controls the execution flow) was not, because the `selectorType` was wrong. This PR addresses this bug.
Looks reasonable to me.
-------------
Marked as reviewed by jlahoda (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/18236#pullrequestreview-1938900922
More information about the compiler-dev
mailing list