Backport of [JDK-8310829](https://bugs.openjdk.java.net/browse/JDK-8310829). Applies cleanly.
Thanks, Tobias ------------- Commit messages: - 8310829: guarantee(!HAS_PENDING_EXCEPTION) failed in ExceptionTranslation::doit Changes: https://git.openjdk.org/jdk21/pull/91/files Webrev: https://webrevs.openjdk.org/?repo=jdk21&pr=91&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8310829 Stats: 176 lines in 6 files changed: 123 ins; 21 del; 32 mod Patch: https://git.openjdk.org/jdk21/pull/91.diff Fetch: git fetch https://git.openjdk.org/jdk21.git pull/91/head:pull/91 PR: https://git.openjdk.org/jdk21/pull/91