This pull request contains a backport of [JDK-8287672](https://bugs.openjdk.org/browse/JDK-8287672), commit [7e211d7d](https://github.com/openjdk/jdk/commit/7e211d7daac32dca8f26f408d1a3b2c7805b5a2e) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.
The commit being backported was authored by Rob McKenna on 21 Jun 2022 and was reviewed by Daniel Fuchs and Aleksei Efimov. It has already been brought to jdk19u but as it is a test fix I think it should still go into jdk19 as well. ------------- Commit messages: - Backport 7e211d7daac32dca8f26f408d1a3b2c7805b5a2e Changes: https://git.openjdk.org/jdk19/pull/97/files Webrev: https://webrevs.openjdk.org/?repo=jdk19&pr=97&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8287672 Stats: 4 lines in 1 file changed: 3 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk19/pull/97.diff Fetch: git fetch https://git.openjdk.org/jdk19 pull/97/head:pull/97 PR: https://git.openjdk.org/jdk19/pull/97