United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7154809 JDI: update JDI/JDB debugee commandline option parsing
JDK-7154809 : JDI: update JDI/JDB debugee commandline option parsing

Details
Type:
Bug
Submit Date:
2012-03-19
Status:
Closed
Updated Date:
2014-01-21
Project Name:
JDK
Resolved Date:
2012-07-27
Component:
core-svc
OS:
generic
Sub-Component:
debugger
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs23,7u4,8
Fixed Versions:
7u6 (b12)

Related Reports
Backport:

Sub Tasks

Description
see comments
Please add the workaround to the bug. I have marked this for deferral.

                                    

Comments
EVALUATION

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

/Markus
                                     
2012-03-22
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.
                                     
2012-03-26
EVALUATION

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



Hardware and Software, Engineered to Work Together