Skip to content

Commit

Permalink
Remove java.security.manager=allow flag from launcher.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mbien committed Nov 29, 2024
1 parent 4c4ed50 commit d73956b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion platform/o.n.bootstrap/launcher/unix/nbexec
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ fi
# rename old heap dump to .old
mv "${userdir}/var/log/heapdump.hprof" "${userdir}/var/log/heapdump.hprof.old" > /dev/null 2>&1

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

if [ -z "$cachedirspecified" ]; then
Expand Down
2 changes: 0 additions & 2 deletions platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,6 @@ void PlatformLauncher::prepareOptions() {
option = OPT_KEEP_WORKING_SET_ON_MINIMIZE;
javaOptions.push_back(option);

option = OPT_JAVA_SECURITY_MANAGER_ALLOW;
javaOptions.push_back(option);
}

string & PlatformLauncher::constructClassPath(bool runUpdater) {
Expand Down

0 comments on commit d73956b

Please sign in to comment.