Skip to content

Commit 164cb11

Browse files
committed
fix(launcher): Correct intended release file property to use for JSA 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 <29788154+chadlwilson@users.noreply.github.com> (cherry picked from commit 250080a)
1 parent 4766b0b commit 164cb11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/jruby.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ if [ -f "$JAVA_HOME/release" ]; then
543543

544544
case $name in
545545
(JAVA_VERSION) unquote "$value" && java_version=$REPLY ;;
546-
(JAVA_RELEASE_VERSION) unquote "$value" && java_runtime_version=$REPLY ;;
546+
(JAVA_RUNTIME_VERSION) unquote "$value" && java_runtime_version=$REPLY ;;
547547
esac
548548
done < "$JAVA_HOME"/release
549549
unset line name value

0 commit comments

Comments
 (0)