Skip to content

Commit

Permalink
8286851: Deprecate for removal several of the undocumented java launc…
Browse files Browse the repository at this point in the history
…her options

Reviewed-by: dholmes
  • Loading branch information
jaikiran committed Sep 19, 2024
1 parent ac58b61 commit 6719899
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/java.base/share/native/libjli/java.c
Original file line number Diff line number Diff line change
Expand Up @@ -1463,14 +1463,18 @@ ParseArguments(int *pargc, char ***pargv,
JLI_ShowMessage("%s %s", _launcher_name, GetFullVersion());
return JNI_FALSE;
} else if (JLI_StrCmp(arg, "-verbosegc") == 0) {
JLI_ReportErrorMessage(ARG_DEPRECATED, "-verbosegc");
AddOption("-verbose:gc", NULL);
} else if (JLI_StrCmp(arg, "-debug") == 0) {
JLI_ReportErrorMessage(ARG_DEPRECATED, "-debug");
} else if (JLI_StrCmp(arg, "-noclassgc") == 0) {
JLI_ReportErrorMessage(ARG_DEPRECATED, "-noclassgc");
AddOption("-Xnoclassgc", NULL);
} else if (JLI_StrCmp(arg, "-verify") == 0) {
JLI_ReportErrorMessage(ARG_DEPRECATED, "-verify");
AddOption("-Xverify:all", NULL);
} else if (JLI_StrCmp(arg, "-verifyremote") == 0) {
JLI_ReportErrorMessage(ARG_DEPRECATED, "-verifyremote");
AddOption("-Xverify:remote", NULL);
} else if (JLI_StrCmp(arg, "-noverify") == 0) {
/*
Expand All @@ -1479,9 +1483,10 @@ ParseArguments(int *pargc, char ***pargv,
*/
AddOption("-Xverify:none", NULL);
} else if (JLI_StrCCmp(arg, "-ss") == 0 ||
JLI_StrCCmp(arg, "-oss") == 0 ||
JLI_StrCCmp(arg, "-ms") == 0 ||
JLI_StrCCmp(arg, "-mx") == 0) {
JLI_ReportErrorMessage("Warning: %.3s option is deprecated"
" and may be removed in a future release.", arg);
size_t tmpSize = JLI_StrLen(arg) + 6;
char *tmp = JLI_MemAlloc(tmpSize);
snprintf(tmp, tmpSize, "-X%s", arg + 1); /* skip '-' */
Expand Down

0 comments on commit 6719899

Please sign in to comment.