File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
compiler/src/dotty/tools/repl Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -534,8 +534,15 @@ class ReplDriver(settings: Array[String],
534
534
}
535
535
}
536
536
537
+ // TODO: no idea how to access and reload the class paths
538
+ val newClassPath = state.context.platform.classPath(using state.context).asURLs :+ f.toURI.toURL
539
+ println(s " new class path= ${newClassPath.mkString(" , " )}" )
537
540
val clsl = rendering.classLoader()(using state.context)
541
+ val newClsl = fromURLsParallelCapable(newClassPath, clsl)
542
+ println(s " newClsl getResource= ${newClsl.getURLs.toList}" )
543
+ newClsl.asContext(state.context)
538
544
545
+ // Scala 2:
539
546
// def alreadyDefined(clsName: String) = classLoader.tryToLoadClass(clsName).isDefined
540
547
// val existingClass = entries.filter(_.ext.isClass).map(classNameOf).find(alreadyDefined)
541
548
You can’t perform that action at this time.
0 commit comments