RFR: 8357361: Exception when compiling switch expression with inferred type
Vicente Romero
vromero at openjdk.org
Wed May 21 18:21:56 UTC 2025
On Wed, 21 May 2025 15:30:25 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> There's a missing erasure in `TransTypes`, which eventually leads to an attempt to cast to a captured wildcard type (for the case shown in the bug report), which cannot be done. (In this case, `TransTypes` will report an error.)
>
> (There's a unused/unnecessary code in the close vicinity of the added erasure, and a similar code in `visitSwitch`. I could resist deleting that unnecessary code.)
looks good
-------------
Marked as reviewed by vromero (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/25358#pullrequestreview-2858724712
More information about the compiler-dev
mailing list