RFR: 8328747: WrongMethodTypeException with pattern matching on switch on sealed classes [v3]

Aggelos Biboudis abimpoudis at openjdk.org
Thu Apr 4 09:05:26 UTC 2024


> 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.

Aggelos Biboudis has updated the pull request incrementally with one additional commit since the last revision:

  Address review

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/18606/files
  - new: https://git.openjdk.org/jdk/pull/18606/files/95e153b4..85642511

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=18606&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18606&range=01-02

  Stats: 6 lines in 2 files changed: 0 ins; 1 del; 5 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