8204517: [Graal] org.graalvm.compiler.debug.test.VersionsTest fails with InvalidPathException on windows
authoriignatyev
Fri, 29 Jun 2018 13:44:09 -0700
changeset 50915 78711bd05b5a
parent 50914 07498f5b6a96
child 50916 2f9a0c4fcf58
8204517: [Graal] org.graalvm.compiler.debug.test.VersionsTest fails with InvalidPathException on windows Reviewed-by: kvn
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug.test/src/org/graalvm/compiler/debug/test/VersionsTest.java
test/hotspot/jtreg/ProblemList-graal.txt
--- a/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug.test/src/org/graalvm/compiler/debug/test/VersionsTest.java	Fri Jun 29 13:43:35 2018 -0700
+++ b/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug.test/src/org/graalvm/compiler/debug/test/VersionsTest.java	Fri Jun 29 13:44:09 2018 -0700
@@ -27,6 +27,8 @@
 import java.io.File;
 import java.io.FileWriter;
 import java.io.IOException;
+import java.net.URI;
+import java.net.URISyntaxException;
 import java.nio.file.FileVisitResult;
 import java.nio.file.FileVisitor;
 import java.nio.file.Files;
@@ -80,15 +82,15 @@
     }
 
     @Test
-    public void emptyProperties() {
-        Path root = Paths.get("file:/");
+    public void emptyProperties() throws URISyntaxException {
+        Path root = Paths.get(new URI("file:/"));
         Versions v = new Versions(root);
         assertEmpty(v.withVersions(null));
     }
 
     @Test
-    public void emptyWithNullProperties() {
-        Path root = Paths.get("file:/");
+    public void emptyWithNullProperties() throws URISyntaxException {
+        Path root = Paths.get(new URI("file:/"));
         Versions v = new Versions(root);
         assertEmpty(v.withVersions(null));
     }
--- a/test/hotspot/jtreg/ProblemList-graal.txt	Fri Jun 29 13:43:35 2018 -0700
+++ b/test/hotspot/jtreg/ProblemList-graal.txt	Fri Jun 29 13:44:09 2018 -0700
@@ -184,5 +184,4 @@
 org.graalvm.compiler.core.test.deopt.CompiledMethodTest          8202955
 org.graalvm.compiler.core.test.CountedLoopTest                   8199885
 org.graalvm.compiler.debug.test.DebugContextTest                 8203504
-org.graalvm.compiler.debug.test.VersionsTest                     8204517
 org.graalvm.compiler.core.test.VerifyDebugUsageTest              8205078