Skip to content

Commit 0444353

Browse files
committed
Fix Maven integration tests on JDK 24
(cherry picked from commit 35a3fd6)
1 parent b5c7f4e commit 0444353

File tree

1 file changed

+4
-2
lines changed
  • platform-tooling-support-tests/src/test/java/platform/tooling/support/tests

1 file changed

+4
-2
lines changed

Diff for: platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/MavenEnvVars.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616

1717
final class MavenEnvVars {
1818

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

2426
private MavenEnvVars() {

0 commit comments

Comments
 (0)