We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23e794a commit 8849013Copy full SHA for 8849013
src/compiler/scala/tools/nsc/classpath/VirtualDirectoryClassPath.scala
@@ -35,7 +35,7 @@ case class VirtualDirectoryClassPath(dir: VirtualDirectory) extends ClassPath wi
35
def isPackage(f: AbstractFile): Boolean = f.isPackage
36
37
// mimic the behavior of the old nsc.util.DirectoryClassPath
38
- def asURLs: Seq[URL] = Seq(new URL(dir.name))
+ def asURLs: Seq[URL] = Seq(new URL("file://_VIRTUAL_/" + dir.name))
39
def asClassPathStrings: Seq[String] = Seq(dir.path)
40
41
override def findClass(className: String): Option[ClassRepresentation] = findClassFile(className) map ClassFileEntryImpl
0 commit comments