From aa24cfd134103e2c1e05400fc9ad6c7f6f78c3e5 Mon Sep 17 00:00:00 2001 From: robm Date: Tue, 28 Jun 2016 20:03:29 +0100 Subject: [PATCH] 8143640: Showing incorrect result while passing specific argument in the Java launcher tools Reviewed-by: ksrini --- src/windows/bin/cmdtoargs.c | 1 + test/tools/launcher/Arrrghs.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/windows/bin/cmdtoargs.c b/src/windows/bin/cmdtoargs.c index 352b1553a..29e5e77ae 100644 --- a/src/windows/bin/cmdtoargs.c +++ b/src/windows/bin/cmdtoargs.c @@ -155,6 +155,7 @@ static char* next_arg(char* cmdline, char* arg, jboolean* wildcard) { } } dest += copyCh(ch, dest); + slashes = 0; break; default: diff --git a/test/tools/launcher/Arrrghs.java b/test/tools/launcher/Arrrghs.java index 89893e4b6..73d868947 100644 --- a/test/tools/launcher/Arrrghs.java +++ b/test/tools/launcher/Arrrghs.java @@ -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 @@ public class Arrrghs extends TestHelper { // 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 { -- GitLab