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

Aggelos Biboudis abimpoudis at openjdk.org
Wed Apr 3 15:00:25 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:

  Append empty line

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

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

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

  Stats: 1 line in 1 file changed: 0 ins; 0 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