Skip to content

Commit

Permalink
[Launching] Don't add -Djava.security.manager=allow for Java-24 or later
Browse files Browse the repository at this point in the history
Since Java-24 the security-manager cannot be used anymore and launching
a Java-24 VM fails to launch if the VM-argument
'-Djava.security.manager=allow' is specified.

Part of eclipse-platform/eclipse.platform.releng.aggregator#2623
  • Loading branch information
HannesWell committed Dec 14, 2024
1 parent 9bc4a18 commit df5b62e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private String[] updateVMArgumentWithAdditionalArguments(String[] args, IVMInsta
if (isEclipseBundleGreaterThanVersion(4, 24) // Don't add allow flags for eclipse before 4.24
&& vmInstall instanceof AbstractVMInstall install) {
String vmver = install.getJavaVersion();
if (vmver != null && JavaCore.compareJavaVersions(vmver, JavaCore.VERSION_17) >= 0) {
if (vmver != null && JavaCore.compareJavaVersions(vmver, JavaCore.VERSION_17) >= 0 && JavaCore.compareJavaVersions(vmver, JavaCore.VERSION_23) <= 0) {
VMHelper.addNewArgument(arguments, "-Djava.security.manager", "allow"); //$NON-NLS-1$ //$NON-NLS-2$
}
}
Expand Down

0 comments on commit df5b62e

Please sign in to comment.