8231431: JAOTC issues with JAR path containing spaces
authorbobv
Fri, 27 Sep 2019 18:27:42 +0000
changeset 58387 c5b80da6b561
parent 58386 693c1eb29b8d
child 58388 a819c684964b
8231431: JAOTC issues with JAR path containing spaces Reviewed-by: kvn
src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/collect/FileSupport.java
--- a/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/collect/FileSupport.java	Fri Sep 27 12:20:14 2019 -0700
+++ b/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/collect/FileSupport.java	Fri Sep 27 18:27:42 2019 +0000
@@ -59,7 +59,7 @@
         try {
             String name = path.toAbsolutePath().toString();
             name = name.replace('\\', '/');
-            return new URI("jar:file:///" + name + "!/");
+            return new URI("jar:file", null, "///" + name + "!/", null);
         } catch (URISyntaxException e) {
             throw new InternalError(e);
         }