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 23417de commit 81b58ecCopy full SHA for 81b58ec
compiler/src/dotty/tools/runner/ScalaClassLoader.scala
@@ -62,7 +62,7 @@ object ScalaClassLoader {
62
def setContext(cl: ClassLoader) = Thread.currentThread.setContextClassLoader(cl)
63
64
def fromURLsParallelCapable(urls: Seq[URL], parent: ClassLoader | Null = null): URLClassLoader =
65
- new URLClassLoader(urls.toArray, if parent == null then bootClassLoader else parent)
+ new URLClassLoader(urls.toArray, if parent == null then ClassLoader.getSystemClassLoader.getParent else parent)
66
67
@sharable private[this] val bootClassLoader: ClassLoader =
68
if scala.util.Properties.isJavaAtLeast("9") then
0 commit comments