-
Bug
-
Resolution: Fixed
-
P3
-
9, 10
Tool Reference reads --
--add-modules module[,module...]
Specifies the root modules to resolve in addition to the initial module. For Linux and macOS, use a colon (:) to separate items in the list. For Windows, use a semicolon (;) to separate items.
------
The separator is shown to be comma not colon/semicolon. Those are path separators, not list separators. Using them causes failure --
% /w/j/client/build/linux-x86_64-normal-server-release/images/jdk/bin/jshell --add-modules java.xml.bind:java.xml.ws.annotation
Launching JShell execution engine threw: Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.xml.bind:java.xml.ws.annotation not found
% /w/j/client/build/linux-x86_64-normal-server-release/images/jdk/bin/jshell --add-modules java.xml.bind,java.xml.ws.annotation
| Welcome to JShell -- Version 10-internal
| For an introduction type: /help intro
jshell> /ex
| Goodbye
---------------------
The same problem is present in the command documentation for /env, /reload, and /reset
---------------------
Correspondingly, the same two sentences are used (correctly) for --class-path and --module-path -- however they use the word "list" which is not otherwise used, this is a "path" not a "list". So, these should read "...to separate items in the path...".
--add-modules module[,module...]
Specifies the root modules to resolve in addition to the initial module. For Linux and macOS, use a colon (:) to separate items in the list. For Windows, use a semicolon (;) to separate items.
------
The separator is shown to be comma not colon/semicolon. Those are path separators, not list separators. Using them causes failure --
% /w/j/client/build/linux-x86_64-normal-server-release/images/jdk/bin/jshell --add-modules java.xml.bind:java.xml.ws.annotation
Launching JShell execution engine threw: Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.xml.bind:java.xml.ws.annotation not found
% /w/j/client/build/linux-x86_64-normal-server-release/images/jdk/bin/jshell --add-modules java.xml.bind,java.xml.ws.annotation
| Welcome to JShell -- Version 10-internal
| For an introduction type: /help intro
jshell> /ex
| Goodbye
---------------------
The same problem is present in the command documentation for /env, /reload, and /reset
---------------------
Correspondingly, the same two sentences are used (correctly) for --class-path and --module-path -- however they use the word "list" which is not otherwise used, this is a "path" not a "list". So, these should read "...to separate items in the path...".