Skip to content

[9.4] fix(launcher): correct parsing of java release files under Bash/msys2 etc on Windows #9128

Merged
headius merged 3 commits into
jruby:jruby-9.4from
chadlwilson:launcher-windows-fixes-94
Dec 30, 2025
Merged

[9.4] fix(launcher): correct parsing of java release files under Bash/msys2 etc on Windows #9128
headius merged 3 commits into
jruby:jruby-9.4from
chadlwilson:launcher-windows-fixes-94

Conversation

@chadlwilson

@chadlwilson chadlwilson commented Dec 10, 2025

Copy link
Copy Markdown
Contributor

Backport of #9127 for 9.4.x (given other launcher changes for 10.0.x have been ported across).

…A suffixes

As discussed in jruby#9127 (comment) this isn't perfect; however gets closer to the internal compatibility matching the JVM seems to do when loading JSAs at https://github.com/openjdk/jdk21u/blob/3c0530fd5f9615941144d8ac89786ce699027b51/src/hotspot/share/cds/filemap.cpp#L1341-L1349 (JDK 21)

Signed-off-by: Chad Wilson <[email protected]>
(cherry picked from commit 250080a)
shellcheck treats the shell=dash designation as indication to only care about dash rules; however IntelliJ idea will still highlight it as an issue. We are probably better to only suppress the relevant rule.

Signed-off-by: Chad Wilson <[email protected]>
(cherry picked from commit e10eda1)
…release metadata

Windows Temurin builds (for example) use CRLF in their `release` file; which breaks unquoting and thus the rest of the script.

Signed-off-by: Chad Wilson <[email protected]>
(cherry picked from commit 4cee12a)
@headius headius added this to the JRuby 9.4.15.0 milestone Dec 30, 2025
@headius headius merged commit e2bdf61 into jruby:jruby-9.4 Dec 30, 2025
195 of 196 checks passed
@headius

headius commented Dec 30, 2025

Copy link
Copy Markdown
Member

Thank you!

@chadlwilson chadlwilson deleted the launcher-windows-fixes-94 branch December 31, 2025 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants