You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you for example use the mxschmitt/action-tmate@v3 action to get a login onto a GitHub Action runner,
and call /usr/libexec/java_home -V you will see that the paths of the JDKs are like /Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.9-9/x64/Contents/Home.
If in such or similar situation the findJDKDylib algorithm is followed,
it misses to find jdk1., then cuts as the first - and then again at the first /.
This results in the "version" Hotspot_jdk which then of course fails the major version check.
The algorithm should be improved to check for further occurrences, or validate that digits are following or similar.
The text was updated successfully, but these errors were encountered:
Actually even checking all dashes would not help in this case, as for the shown example 9 would then be determined as version.
It should probably actually call the executable to retrieve its version like for the JRE search.
If you for example use the
mxschmitt/action-tmate@v3
action to get a login onto a GitHub Action runner,and call
/usr/libexec/java_home -V
you will see that the paths of the JDKs are like/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.9-9/x64/Contents/Home
.If in such or similar situation the
findJDKDylib
algorithm is followed,it misses to find
jdk1.
, then cuts as the first-
and then again at the first/
.This results in the "version"
Hotspot_jdk
which then of course fails the major version check.The algorithm should be improved to check for further occurrences, or validate that digits are following or similar.
The text was updated successfully, but these errors were encountered: