SUGGESTED FIX
Passing in a double quoted value, such as "-XX:+PrintVMOptions" works today. But only because double-quoted options can be passed directly onto the actual VM command-line (where it is stripped by the VM). What does not work is single-quoted values such as '-XX:+PrintVMOptions', where the regexp for comma-delimiters works ok, but such an option cannot be passed on directly to the VM, since the VM does not strip single-quoted options. There is also more complex expressions like nested quotations, for example "' options '", which will not work for the same reason.
The values should be stripped from any quoted qualifiers before passing onto the VM for proper command-line arguments.
|