Skip to content

Commit 7d50bdb

Browse files
Merge pull request #7538 from izhangzhihao/patch-1
Fix #7537 "cannot be represented as URI" in JDK 13
2 parents bb96612 + d0ca212 commit 7d50bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/classpath/DirectoryClassPath.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ final class JrtClassPath(fs: java.nio.file.FileSystem) extends ClassPath with No
179179
if (inPackage == "") ClassPathEntries(packages(inPackage), Nil)
180180
else ClassPathEntries(packages(inPackage), classes(inPackage))
181181

182-
def asURLs: Seq[URL] = Seq(dir.toUri.toURL)
182+
def asURLs: Seq[URL] = Seq(new URL("jrt:/"))
183183
// We don't yet have a scheme to represent the JDK modules in our `-classpath`.
184184
// java models them as entries in the new "module path", we'll probably need to follow this.
185185
def asClassPathStrings: Seq[String] = Nil

0 commit comments

Comments
 (0)