RFR: 8328747: WrongMethodTypeException with pattern matching on switch on sealed classes
Aggelos Biboudis
abimpoudis at openjdk.org
Wed Apr 3 14:50:42 UTC 2024
This PR addresses the issue that the expected signature for `typeSwitch` is different prior JDK 23. The signature, due to JEP 455, needs to be more precise on the `selectorType` now that primitive type support is previewed.
-------------
Commit messages:
- 8328747: WrongMethodTypeException with pattern matching on switch on sealed classes
Changes: https://git.openjdk.org/jdk/pull/18606/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18606&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8328747
Stats: 137 lines in 3 files changed: 135 ins; 1 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/18606.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/18606/head:pull/18606
PR: https://git.openjdk.org/jdk/pull/18606
More information about the compiler-dev
mailing list