提交 aa24cfd1 编写于 作者: R robm

8143640: Showing incorrect result while passing specific argument in the Java launcher tools

Reviewed-by: ksrini
上级 ab1591ed
...@@ -155,6 +155,7 @@ static char* next_arg(char* cmdline, char* arg, jboolean* wildcard) { ...@@ -155,6 +155,7 @@ static char* next_arg(char* cmdline, char* arg, jboolean* wildcard) {
} }
} }
dest += copyCh(ch, dest); dest += copyCh(ch, dest);
slashes = 0;
break; break;
default: default:
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
/** /**
* @test * @test
* @bug 5030233 6214916 6356475 6571029 6684582 6742159 4459600 6758881 6753938 * @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. * @summary Argument parsing validation.
* @compile -XDignore.symbol.file Arrrghs.java * @compile -XDignore.symbol.file Arrrghs.java
* @run main/othervm Arrrghs * @run main/othervm Arrrghs
...@@ -324,6 +324,8 @@ public class Arrrghs extends TestHelper { ...@@ -324,6 +324,8 @@ public class Arrrghs extends TestHelper {
// more treatment of mixed slashes // more treatment of mixed slashes
checkArgumentParsing("f1/ f3\\ f4/", "f1/", "f3\\", "f4/"); checkArgumentParsing("f1/ f3\\ f4/", "f1/", "f3\\", "f4/");
checkArgumentParsing("f1/ f2\' ' f3/ f4/", "f1/", "f2\'", "'", "f3/", "f4/"); checkArgumentParsing("f1/ f2\' ' f3/ f4/", "f1/", "f2\'", "'", "f3/", "f4/");
checkArgumentParsing("a\\*\\b", "a\\*\\b");
} }
private void initEmptyDir(File emptyDir) throws IOException { private void initEmptyDir(File emptyDir) throws IOException {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册