8231431: JAOTC issues with JAR path containing spaces

Reviewed-by: kvn
This commit is contained in:
Bob Vandette 2019-09-27 18:27:42 +00:00
parent 8c647801fc
commit 68937e9b9f

View File

@ -59,7 +59,7 @@ public class FileSupport {
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);
}