JDK-4270497 : JDI: Sun Launcher does not tokenize 'str1"str2"' correctly
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 1.3.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 1999-09-10
  • Updated: 2002-09-06
  • Resolved: 2002-09-06
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.
Other
1.3.0 kestrelFixed
Related Reports
Relates :  
Description
We found a problem with launching  debugger using the defaultConnector.
If the Connector.Argument of type "options" has quoted string in it,
defaultConnector.launch will remove the quote and generates an invalid command
line. (happens in Solaris and WinNT)

e.g.:
  add the following VM parameter to the defaultConnector "options" argument.
   -Duser.dir="E:\JBuilder3\myprojects\untitled5"

The resulted command line will be:
  -Duser.dir= E:\JBuilder3\myprojects\untitled5        (there is a space between
'=' and 'E')




The following  is the exception thrown by the defaultConnector launcher:

com.sun.jdi.connect.VMStartException: VM initialization failed for:
D:\jdk1.2.2\bin\javaw -classic -Duser.dir= E:\JBuilder3\myprojects\untitled5
-classpath

E:\JBuilder3\myclasses;E:\pt\lib\jbcl3.0.jar;E:\pt\lib\jbcl3.0-res.jar;D:\jdk1.2.2\jre\lib\rt.jar;D:\jdk1.2.2\jre\lib\i18n.jar;D:\jdk1.2.2\lib\dt.jar;D:\jdk1.2.2\lib\tools.jar;D:\jdk1.2.2\lib\jpda.jar
-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_shmem,address=javadebug,suspend=y untitled5.untitled5

This problem occurs when a single command line argument is partially quoted, i.e. the -Duser.dir and the "E:\..." belong together but are separated into separate tokens. 

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic kestrel FIXED IN: kestrel INTEGRATED IN: kestrel
14-06-2004

EVALUATION AbstractLauncher should be fixed accordingly.
11-06-2004