Skip to content

Commit 6c17cc6

Browse files
authored
Merge pull request #8009 from mbien/remove-sm-flag-from-launcher
Remove java.security.manager=allow flag from windows launcher.
2 parents dac2621 + 272ebc2 commit 6c17cc6

File tree

8 files changed

+10
-14
lines changed

8 files changed

+10
-14
lines changed

nb/ide.launcher/windows/netbeans.exe.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
2121
-->
2222
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
23-
<assemblyIdentity version="101.1.0.0"
23+
<assemblyIdentity version="101.2.0.0"
2424
processorArchitecture="x86"
2525
name="netbeans.exe"
2626
type="win32"/>

nb/ide.launcher/windows/netbeans64.exe.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
2323
<!-- Use processorArchitecture="x86", which is the value used by the 64-bit
2424
javaw.exe on Java 10.0.2 and Java 11ea. -->
25-
<assemblyIdentity version="101.1.0.0"
25+
<assemblyIdentity version="101.2.0.0"
2626
processorArchitecture="x86"
2727
name="netbeans64.exe"
2828
type="win32"/>

nb/ide.launcher/windows/version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
#define COMPANY ""
2121
#define COMPONENT "Apache NetBeans IDE Launcher"
22-
#define VER "101.1.0.0"
23-
#define FVER 101,1,0,0
24-
#define BUILD_ID "101100"
22+
#define VER "101.2.0.0"
23+
#define FVER 101,2,0,0
24+
#define BUILD_ID "101200"
2525
#define INTERNAL_NAME "netbeans"
2626
#define COPYRIGHT "Based on Apache NetBeans from the Apache Software Foundation and is licensed under Apache License Version 2.0"
2727
#define NAME "Apache NetBeans IDE Launcher"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ bool JvmLauncher::startInProcJvm(const char *mainClassName, const std::list<std:
249249
for (list<string>::const_iterator it = options.begin(); it != options.end(); ++it, ++i) {
250250
const string &option = *it;
251251
logMsg("\t%s", option.c_str());
252-
if (option.find("-splash:") == 0 && hSplash > 0) {
252+
if (option.find("-splash:") == 0 && hSplash != nullptr) {
253253
const string splash = option.substr(8);
254254
logMsg("splash at %s", splash.c_str());
255255

platform/o.n.bootstrap/launcher/windows/nbexec.exe.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
2121
-->
2222
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
23-
<assemblyIdentity version="101.1.0.0"
23+
<assemblyIdentity version="101.2.0.0"
2424
processorArchitecture="X86"
2525
name="nbexec.exe"
2626
type="win32"/>

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ const char *PlatformLauncher::OPT_NB_USERDIR = "-Dnetbeans.user=";
5252
const char *PlatformLauncher::OPT_DEFAULT_USERDIR_ROOT = "-Dnetbeans.default_userdir_root=";
5353
const char *PlatformLauncher::OPT_HEAP_DUMP = "-XX:+HeapDumpOnOutOfMemoryError";
5454
const char *PlatformLauncher::OPT_HEAP_DUMP_PATH = "-XX:HeapDumpPath=";
55-
const char *PlatformLauncher::OPT_JAVA_SECURITY_MANAGER_ALLOW = "-Djava.security.manager=allow";
5655
const char *PlatformLauncher::OPT_KEEP_WORKING_SET_ON_MINIMIZE = "-Dsun.awt.keepWorkingSetOnMinimize=true";
5756
const char *PlatformLauncher::OPT_CLASS_PATH = "-Djava.class.path=";
5857
const char *PlatformLauncher::OPT_SPLASH = "-splash:";
@@ -579,8 +578,6 @@ void PlatformLauncher::prepareOptions() {
579578
option = OPT_KEEP_WORKING_SET_ON_MINIMIZE;
580579
javaOptions.push_back(option);
581580

582-
option = OPT_JAVA_SECURITY_MANAGER_ALLOW;
583-
javaOptions.push_back(option);
584581
}
585582

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

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class PlatformLauncher {
4242
static const char *OPT_DEFAULT_USERDIR_ROOT;
4343
static const char *OPT_HEAP_DUMP;
4444
static const char *OPT_HEAP_DUMP_PATH;
45-
static const char *OPT_JAVA_SECURITY_MANAGER_ALLOW;
4645
static const char *OPT_KEEP_WORKING_SET_ON_MINIMIZE;
4746
static const char *OPT_CLASS_PATH;
4847
static const char *OPT_SPLASH;

platform/o.n.bootstrap/launcher/windows/version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
#define COMPANY ""
2121
#define COMPONENT "Apache NetBeans Platform Launcher"
22-
#define VER "101.1.0.0"
23-
#define FVER 101,1,0,0
24-
#define BUILD_ID "101100"
22+
#define VER "101.2.0.0"
23+
#define FVER 101,2,0,0
24+
#define BUILD_ID "101200"
2525
#define INTERNAL_NAME "nbexec"
2626
#define COPYRIGHT "Based on Apache NetBeans from the Apache Software Foundation and is licensed under Apache License Version 2.0"
2727
#define NAME "Apache NetBeans Platform Launcher"

0 commit comments

Comments
 (0)