Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
8294840: langtools OptionalDependencyTest.java use File.pathSeparator
Browse files Browse the repository at this point in the history
Backport-of: f531dae4a0ffd2a5663cf4a4bde581d68fc728d5
  • Loading branch information
RealCLanger committed Nov 3, 2022
1 parent 875a226 commit 3bb0bc9
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -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;
Expand Down Expand Up @@ -71,7 +72,7 @@ public void compileAll() throws Exception {
*/
@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);
Expand All @@ -83,7 +84,7 @@ public void optionalDependenceNotResolved() {
*/
@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);
Expand Down

1 comment on commit 3bb0bc9

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.