Skip to content

Commit d73956b

Browse files
committed
Remove java.security.manager=allow flag from launcher.
this commit implements SM removal step 1 of 3 1) remove SM flag from launcher and release new launcher bits 2) move flag to config and switch to new launcher bits 3) implement SM removal for JDK 24 compatibility
1 parent 4c4ed50 commit d73956b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

platform/o.n.bootstrap/launcher/unix/nbexec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ fi
192192
# rename old heap dump to .old
193193
mv "${userdir}/var/log/heapdump.hprof" "${userdir}/var/log/heapdump.hprof.old" > /dev/null 2>&1
194194

195-
jargs_without_clusters="$jargs -Djava.security.manager=allow"
195+
jargs_without_clusters="$jargs"
196196
jargs="-Dnetbeans.dirs=\"${clusters}\" $jargs_without_clusters"
197197

198198
if [ -z "$cachedirspecified" ]; then

platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,6 @@ void PlatformLauncher::prepareOptions() {
579579
option = OPT_KEEP_WORKING_SET_ON_MINIMIZE;
580580
javaOptions.push_back(option);
581581

582-
option = OPT_JAVA_SECURITY_MANAGER_ALLOW;
583-
javaOptions.push_back(option);
584582
}
585583

586584
string & PlatformLauncher::constructClassPath(bool runUpdater) {

0 commit comments

Comments
 (0)