From f531dae4a0ffd2a5663cf4a4bde581d68fc728d5 Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Wed, 5 Oct 2022 14:41:29 +0000 Subject: [PATCH] 8294840: langtools OptionalDependencyTest.java use File.pathSeparator Reviewed-by: alanb --- .../jdeps/optionalDependency/OptionalDependencyTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/langtools/tools/jdeps/optionalDependency/OptionalDependencyTest.java b/test/langtools/tools/jdeps/optionalDependency/OptionalDependencyTest.java index 4a148dc2544..b2deeaac70e 100644 --- a/test/langtools/tools/jdeps/optionalDependency/OptionalDependencyTest.java +++ b/test/langtools/tools/jdeps/optionalDependency/OptionalDependencyTest.java @@ -30,6 +30,7 @@ * @summary Tests optional dependency handling */ +import java.io.File; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Set; @@ -71,7 +72,7 @@ public class OptionalDependencyTest { */ @Test public void optionalDependenceNotResolved() { - JdepsRunner jdepsRunner = new JdepsRunner("--module-path", "m2.jar:m3.jar", + JdepsRunner jdepsRunner = new JdepsRunner("--module-path", "m2.jar" + File.pathSeparator + "m3.jar", "--inverse", "--package", "p2", "m1.jar"); int rc = jdepsRunner.run(true); @@ -83,7 +84,7 @@ public class OptionalDependencyTest { */ @Test public void optionalDependenceResolved() { - JdepsRunner jdepsRunner = new JdepsRunner("--module-path", "m2.jar:m3.jar", + JdepsRunner jdepsRunner = new JdepsRunner("--module-path", "m2.jar" + File.pathSeparator + "m3.jar", "--inverse", "--add-modules", "m3", "--package", "p2", "m1.jar"); int rc = jdepsRunner.run(true);