Skip to content

Commit

Permalink
Use test.getJavaVersion instead of BuildParams
Browse files Browse the repository at this point in the history
Signed-off-by: Rabi Panda <[email protected]>
  • Loading branch information
adnapibar committed Nov 10, 2022
1 parent 043d003 commit 059dfa9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ public void execute(Task t) {
test.systemProperty("java.locale.providers", "SPI,COMPAT");
test.jvmArgs("--illegal-access=warn");
}
if (BuildParams.getIsRuntimeJavaHomeSet() == false
|| BuildParams.getRuntimeJavaVersion().compareTo(JavaVersion.VERSION_17) > 0) {
if (test.getJavaVersion().compareTo(JavaVersion.VERSION_17) > 0) {
test.jvmArgs("-Djava.security.manager=allow");
}
}
Expand Down

0 comments on commit 059dfa9

Please sign in to comment.