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

Mourad Abbay mabbay at openjdk.org
Sat Aug 3 09:18:15 UTC 2024


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

Mourad Abbay has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:

 - Merge branch 'code-reflection' into 8337156
 - Add default label (if it's missing) during code model generation
 - Merge branch 'code-reflection' into 8337156
 - Update the lowering of switch expression to throw Match Exception if no label applies

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

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

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

  Stats: 706 lines in 13 files changed: 518 ins; 77 del; 111 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