Skip to content

Commit 6719899

Browse files
committed
8286851: Deprecate for removal several of the undocumented java launcher options
Reviewed-by: dholmes
1 parent ac58b61 commit 6719899

File tree

1 file changed

+6
-1
lines changed
  • src/java.base/share/native/libjli

1 file changed

+6
-1
lines changed

src/java.base/share/native/libjli/java.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,14 +1463,18 @@ ParseArguments(int *pargc, char ***pargv,
14631463
JLI_ShowMessage("%s %s", _launcher_name, GetFullVersion());
14641464
return JNI_FALSE;
14651465
} else if (JLI_StrCmp(arg, "-verbosegc") == 0) {
1466+
JLI_ReportErrorMessage(ARG_DEPRECATED, "-verbosegc");
14661467
AddOption("-verbose:gc", NULL);
14671468
} else if (JLI_StrCmp(arg, "-debug") == 0) {
14681469
JLI_ReportErrorMessage(ARG_DEPRECATED, "-debug");
14691470
} else if (JLI_StrCmp(arg, "-noclassgc") == 0) {
1471+
JLI_ReportErrorMessage(ARG_DEPRECATED, "-noclassgc");
14701472
AddOption("-Xnoclassgc", NULL);
14711473
} else if (JLI_StrCmp(arg, "-verify") == 0) {
1474+
JLI_ReportErrorMessage(ARG_DEPRECATED, "-verify");
14721475
AddOption("-Xverify:all", NULL);
14731476
} else if (JLI_StrCmp(arg, "-verifyremote") == 0) {
1477+
JLI_ReportErrorMessage(ARG_DEPRECATED, "-verifyremote");
14741478
AddOption("-Xverify:remote", NULL);
14751479
} else if (JLI_StrCmp(arg, "-noverify") == 0) {
14761480
/*
@@ -1479,9 +1483,10 @@ ParseArguments(int *pargc, char ***pargv,
14791483
*/
14801484
AddOption("-Xverify:none", NULL);
14811485
} else if (JLI_StrCCmp(arg, "-ss") == 0 ||
1482-
JLI_StrCCmp(arg, "-oss") == 0 ||
14831486
JLI_StrCCmp(arg, "-ms") == 0 ||
14841487
JLI_StrCCmp(arg, "-mx") == 0) {
1488+
JLI_ReportErrorMessage("Warning: %.3s option is deprecated"
1489+
" and may be removed in a future release.", arg);
14851490
size_t tmpSize = JLI_StrLen(arg) + 6;
14861491
char *tmp = JLI_MemAlloc(tmpSize);
14871492
snprintf(tmp, tmpSize, "-X%s", arg + 1); /* skip '-' */

0 commit comments

Comments
 (0)