[2.0.x] hide JDK warnings if JDK 26 or later (#9119)

Co-authored-by: kenji yoshida <6b656e6a69@gmail.com>
This commit is contained in:
eugene yokota 2026-04-21 23:40:39 -04:00 committed by GitHub
parent 1dc197dc27
commit 5de1057488
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

2
sbt
View File

@ -361,7 +361,7 @@ addSbtScriptProperty () {
}
addJdkWorkaround () {
local is_25="$(expr $java_version "=" 25)"
local is_25="$(expr $java_version ">=" 25)"
if [[ "$hide_jdk_warnings" == "0" ]]; then
:
else

View File

@ -83,7 +83,7 @@ object Main:
else Memory.addDefaultMemory(javaOpts, sbtOpts, javaVer, LauncherOptions.defaultMemMb)
sbtOpts = finalSbt
if !opts.noHideJdkWarnings && javaVer == 25 then
if !opts.noHideJdkWarnings && javaVer >= 25 then
sbtOpts = sbtOpts ++ Seq(
"--sun-misc-unsafe-memory-access=allow",
"--enable-native-access=ALL-UNNAMED"