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:
parent
9681f58b21
commit
03a640d7f1
@ -142,7 +142,7 @@ abstract class AbstractLauncher extends ConnectorImpl implements LaunchingConnec
|
|||||||
* This class simply provides a context for a single launch and
|
* This class simply provides a context for a single launch and
|
||||||
* accept. It provides instance fields that can be used by
|
* accept. It provides instance fields that can be used by
|
||||||
* all threads involved. This stuff can't be in the Connector proper
|
* 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.
|
* one launch.
|
||||||
*/
|
*/
|
||||||
private class Helper {
|
private class Helper {
|
||||||
|
@ -213,7 +213,7 @@ public class SunCommandLineLauncher extends AbstractLauncher implements Launchin
|
|||||||
exePath = exe;
|
exePath = exe;
|
||||||
}
|
}
|
||||||
// Quote only if necessary in case the quote arg value is bogus
|
// Quote only if necessary in case the quote arg value is bogus
|
||||||
if (hasWhitespace(exe)) {
|
if (hasWhitespace(exePath)) {
|
||||||
exePath = quote + exePath + quote;
|
exePath = quote + exePath + quote;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user