# HG changeset patch # User dmeetry # Date 1368806389 -14400 # Node ID eba6acf14262fc371ca9ba59a16d5ff9eceb489c # Parent 6f8aa73679d91b869b94b0fc6717570760c76b33 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: alanb Contributed-by: ivan.gerasimov@oracle.com diff -r 6f8aa73679d9 -r eba6acf14262 src/share/classes/com/sun/tools/jdi/AbstractLauncher.java --- a/src/share/classes/com/sun/tools/jdi/AbstractLauncher.java Tue May 14 21:05:20 2013 +0400 +++ b/src/share/classes/com/sun/tools/jdi/AbstractLauncher.java Fri May 17 19:59:49 2013 +0400 @@ -142,7 +142,7 @@ * 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 { diff -r 6f8aa73679d9 -r eba6acf14262 src/share/classes/com/sun/tools/jdi/SunCommandLineLauncher.java --- a/src/share/classes/com/sun/tools/jdi/SunCommandLineLauncher.java Tue May 14 21:05:20 2013 +0400 +++ b/src/share/classes/com/sun/tools/jdi/SunCommandLineLauncher.java Fri May 17 19:59:49 2013 +0400 @@ -213,7 +213,7 @@ exePath = exe; } // Quote only if necessary in case the quote arg value is bogus - if (hasWhitespace(exe)) { + if (hasWhitespace(exePath)) { exePath = quote + exePath + quote; }