On 20/11/2016 23:22, Remi Forax wrote:

It seems to me that all the command line options of the VM before jigsaw 
doesn't use space as a separator, but with the new option like --module-path or 
--add-modules, you have to put a space after,
so it doesn't work well with the -J option used to take option from tools like 
javac to feed them to the VM, because the space in the middle of the VM option 
is interpreted as a space between the options of the tool.

JEP 293 [1] documents the guidelines on this. It documents that the long form can use space or `=` to separate the option name and value. It further documents that the HotSpot VM will only accept a subset of these rules, hence we have to use `=` as the separator when using the JNI innovation interface, VM options files, or _JAVA_OPTIONS. When only using the java launcher then you need to care too much about this because it will accept space as a separator.

-Alan

[1] http://openjdk.java.net/jeps/293

Reply via email to