Skip to content

Commit f531dae

Browse files
committedOct 5, 2022
8294840: langtools OptionalDependencyTest.java use File.pathSeparator
Reviewed-by: alanb
1 parent ee6c391 commit f531dae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎test/langtools/tools/jdeps/optionalDependency/OptionalDependencyTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* @summary Tests optional dependency handling
3131
*/
3232

33+
import java.io.File;
3334
import java.nio.file.Path;
3435
import java.nio.file.Paths;
3536
import java.util.Set;
@@ -71,7 +72,7 @@ public void compileAll() throws Exception {
7172
*/
7273
@Test
7374
public void optionalDependenceNotResolved() {
74-
JdepsRunner jdepsRunner = new JdepsRunner("--module-path", "m2.jar:m3.jar",
75+
JdepsRunner jdepsRunner = new JdepsRunner("--module-path", "m2.jar" + File.pathSeparator + "m3.jar",
7576
"--inverse",
7677
"--package", "p2", "m1.jar");
7778
int rc = jdepsRunner.run(true);
@@ -83,7 +84,7 @@ public void optionalDependenceNotResolved() {
8384
*/
8485
@Test
8586
public void optionalDependenceResolved() {
86-
JdepsRunner jdepsRunner = new JdepsRunner("--module-path", "m2.jar:m3.jar",
87+
JdepsRunner jdepsRunner = new JdepsRunner("--module-path", "m2.jar" + File.pathSeparator + "m3.jar",
8788
"--inverse", "--add-modules", "m3",
8889
"--package", "p2", "m1.jar");
8990
int rc = jdepsRunner.run(true);

0 commit comments

Comments
 (0)
Please sign in to comment.