mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8210275: Source Launcher should fail if --source is used without a source file
Reviewed-by: mchung, alanb, mcimadamore
This commit is contained in:
parent
82ed2a5fc0
commit
8edf8e2b03
4 changed files with 35 additions and 8 deletions
|
@ -1326,7 +1326,9 @@ ParseArguments(int *pargc, char ***pargv,
|
|||
JLI_StrCmp(arg, "-cp") == 0) {
|
||||
REPORT_ERROR (has_arg_any_len, ARG_ERROR1, arg);
|
||||
SetClassPath(value);
|
||||
mode = LM_CLASS;
|
||||
if (mode != LM_SOURCE) {
|
||||
mode = LM_CLASS;
|
||||
}
|
||||
} else if (JLI_StrCmp(arg, "--list-modules") == 0) {
|
||||
listModules = JNI_TRUE;
|
||||
} else if (JLI_StrCmp(arg, "--show-resolved-modules") == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue