JDK-7154809 : JDI: update JDI/JDB debugee commandline option parsing
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: hs23,7u4,8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-03-19
  • Updated: 2019-11-26
  • Resolved: 2012-07-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u6 b12Fixed 8Fixed
Related Reports
Relates :  
Description
see comments
Please add the workaround to the bug. I have marked this for deferral.

Comments
EVALUATION http://hg.openjdk.java.net/jdk8/tl/jdk/rev/fb52e8bd3718
10-04-2012

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.
26-03-2012

EVALUATION fix will add logic for correct command-line processing of quoted comma-delimited sub-options/values to JDB example code. /Markus
22-03-2012