changeset 11735:b68d8ff43361

8143640: Showing incorrect result while passing specific argument in the Java launcher tools Reviewed-by: ksrini
author robm
date Tue, 28 Jun 2016 20:03:29 +0100
parents 527e4315918a
children ef152062973b
files src/windows/bin/cmdtoargs.c test/tools/launcher/Arrrghs.java
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/bin/cmdtoargs.c	Wed Jul 06 07:40:34 2016 -0700
+++ b/src/windows/bin/cmdtoargs.c	Tue Jun 28 20:03:29 2016 +0100
@@ -155,6 +155,7 @@
                 }
             }
             dest += copyCh(ch, dest);
+            slashes = 0;
             break;
 
         default:
--- a/test/tools/launcher/Arrrghs.java	Wed Jul 06 07:40:34 2016 -0700
+++ b/test/tools/launcher/Arrrghs.java	Tue Jun 28 20:03:29 2016 +0100
@@ -24,7 +24,7 @@
 /**
  * @test
  * @bug 5030233 6214916 6356475 6571029 6684582 6742159 4459600 6758881 6753938
- *      6894719 6968053 7151434 7146424 8007333 8077822
+ *      6894719 6968053 7151434 7146424 8007333 8077822 8143640
  * @summary Argument parsing validation.
  * @compile -XDignore.symbol.file Arrrghs.java
  * @run main/othervm Arrrghs
@@ -324,6 +324,8 @@
         // more treatment of  mixed slashes
         checkArgumentParsing("f1/ f3\\ f4/", "f1/", "f3\\", "f4/");
         checkArgumentParsing("f1/ f2\' ' f3/ f4/", "f1/", "f2\'", "'", "f3/", "f4/");
+
+        checkArgumentParsing("a\\*\\b", "a\\*\\b");
     }
 
     private void initEmptyDir(File emptyDir) throws IOException {