8014676: Java debugger may fail to run

The problem is observed when the binaries for windows are placed under a path which contains a space

Reviewed-by: sla, alanb
This commit is contained in:
Ivan Gerasimov 2013-05-16 19:28:44 +04:00 committed by Dmeetry Degrave
parent 9681f58b21
commit 03a640d7f1
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ abstract class AbstractLauncher extends ConnectorImpl implements LaunchingConnec
* This class simply provides a context for a single launch and
* accept. It provides instance fields that can be used by
* all threads involved. This stuff can't be in the Connector proper
* because the connector is is a singleton and not specific to any
* because the connector is a singleton and is not specific to any
* one launch.
*/
private class Helper {

View File

@ -213,7 +213,7 @@ public class SunCommandLineLauncher extends AbstractLauncher implements Launchin
exePath = exe;
}
// Quote only if necessary in case the quote arg value is bogus
if (hasWhitespace(exe)) {
if (hasWhitespace(exePath)) {
exePath = quote + exePath + quote;
}