[jdk21u-dev] RFR: 8352533: Report useful IOExceptions when jspawnhelper fails

Rui Li duke at openjdk.org
Wed Sep 3 02:31:57 UTC 2025


A clean backport for https://bugs.openjdk.org/browse/JDK-8352533

The current error message of jspawnhelper is only available in stdout, but not in IOException. Applications would miss the error message if stdout isn't captured. This change makes the error message available in exceptions.

The risk is relatively low. On tip for over 3 months. Tests are running.

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

Commit messages:
 - Backport 5c73dfc28cbd6801ac85c6685fb8c77aad3ab0b7

Changes: https://git.openjdk.org/jdk21u-dev/pull/2142/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=2142&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8352533
  Stats: 100 lines in 3 files changed: 74 ins; 0 del; 26 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/2142.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/2142/head:pull/2142

PR: https://git.openjdk.org/jdk21u-dev/pull/2142


More information about the jdk-updates-dev mailing list