Skip to content

Commit 50e3687

Browse files
committed
Fix #5155: Use platform dependent URI creation
1 parent a4b60c4 commit 50e3687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/io/JarArchive.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ object JarArchive {
2727
// creating a new zip file system by using the JAR URL syntax:
2828
// https://docs.oracle.com/javase/7/docs/technotes/guides/io/fsp/zipfilesystemprovider.html
2929
val env = Map("create" -> create.toString).asJava
30-
val uri = java.net.URI.create("jar:file:" + path.toAbsolute.path)
30+
val uri = java.net.URI.create("jar:" + path.toAbsolute.toURI.toString)
3131
val fs = {
3232
try FileSystems.newFileSystem(uri, env)
3333
catch {

0 commit comments

Comments
 (0)