[jdk17u-dev] RFR: 8325621: Improve jspawnhelper version checks

Omar Mukhtar duke at openjdk.org
Wed Aug 13 19:33:20 UTC 2025


On Sat, 15 Jun 2024 00:13:47 GMT, Chad Rakoczy <duke at openjdk.org> wrote:

> Backport [JDK-8325621](https://bugs.openjdk.org/browse/JDK-8325621)
> 
> Clean backport to update jspawnhelper to check that JDK version and jspawnhelper version are the same. Updates test to include check for version. Updated test passes. Already backported to 21 and 22. Risk is low: touches the production code paths but only passes an additional argument to jspawnhelper.

Isn't the version check too restrictive? It should perhaps only match Major and Minor versions and spare the patch version. After-all important security patches should be allowed to be installed unattended.
On one of our production server, one process got halted due to this match:

<img width="589" height="46" alt="image" src="https://github.com/user-attachments/assets/80343757-9aa1-4920-b81a-0f13a4be70cb" />

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

PR Comment: https://git.openjdk.org/jdk17u-dev/pull/2592#issuecomment-3185277753


More information about the jdk-updates-dev mailing list