Integrated: 8328747: WrongMethodTypeException with pattern matching on switch on sealed classes
Aggelos Biboudis
abimpoudis at openjdk.org
Fri Apr 5 08:09:10 UTC 2024
On Wed, 3 Apr 2024 14:45:35 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:
> This PR addresses the issue that the expected signature for `typeSwitch` is different when a release target refers to a version prior to JDK 23. The signature, due to JEP 455, needs to be more precise on the `selectorType` now that primitive type support is previewed.
This pull request has now been integrated.
Changeset: 8efe569b
Author: Aggelos Biboudis <abimpoudis at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/8efe569b8dc0ae865aa75757ca0e5c4cda12aa61
Stats: 137 lines in 3 files changed: 132 ins; 3 del; 2 mod
8328747: WrongMethodTypeException with pattern matching on switch on sealed classes
Reviewed-by: cushon, vromero
-------------
PR: https://git.openjdk.org/jdk/pull/18606
More information about the compiler-dev
mailing list