[code-reflection] RFR: 8337156: Generate code model for switch expression that throws when no label applies [v5]

Mourad Abbay mabbay at openjdk.org
Mon Aug 12 16:06:37 UTC 2024


> Update the code model generation of switch expression to throw if no label applies.

Mourad Abbay has updated the pull request incrementally with three additional commits since the last revision:

 - Test switch expression that has default case not the last
 - Test switch expression that has unconditional pattern
 - Throw MatchException when no label applies and selector is Enum

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

Changes:
  - all: https://git.openjdk.org/babylon/pull/195/files
  - new: https://git.openjdk.org/babylon/pull/195/files/ba2b3629..edd59df8

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=babylon&pr=195&range=04
 - incr: https://webrevs.openjdk.org/?repo=babylon&pr=195&range=03-04

  Stats: 110 lines in 4 files changed: 98 ins; 2 del; 10 mod
  Patch: https://git.openjdk.org/babylon/pull/195.diff
  Fetch: git fetch https://git.openjdk.org/babylon.git pull/195/head:pull/195

PR: https://git.openjdk.org/babylon/pull/195


More information about the babylon-dev mailing list