Skip to content

Commit

Permalink
Fix Maven integration tests on JDK 24
Browse files Browse the repository at this point in the history
(cherry picked from commit 35a3fd6)
  • Loading branch information
marcphilipp committed Dec 11, 2024
1 parent b5c7f4e commit 0444353
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@

final class MavenEnvVars {

// https://issues.apache.org/jira/browse/MNG-8248
static final Map<String, String> FOR_JDK24_AND_LATER = JRE.currentVersion().compareTo(JRE.JAVA_24) >= 0 //
? Map.of("MAVEN_OPTS", "--enable-native-access=ALL-UNNAMED") //
? Map.of("MAVEN_OPTS", String.join(" ", //
"--enable-native-access=ALL-UNNAMED", // https://issues.apache.org/jira/browse/MNG-8248
"--sun-misc-unsafe-memory-access=allow" // https://issues.apache.org/jira/browse/MNG-8399
)) //
: Map.of();

private MavenEnvVars() {
Expand Down

0 comments on commit 0444353

Please sign in to comment.