提交 ff56c368 编写于 作者: D dmeetry

8014676: Java debugger may fail to run

Summary: The problem is observed when the binaries for windows are placed under a path which contains a space
Reviewed-by: sla, alanb
Contributed-by: ivan.gerasimov@oracle.com
上级 a15a8dc4
...@@ -142,7 +142,7 @@ abstract class AbstractLauncher extends ConnectorImpl implements LaunchingConnec ...@@ -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 ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册