Skip to content

Commit 2de80eb

Browse files
committed
fix for #13760
1 parent aff1e11 commit 2de80eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/runner/ScalaClassLoader.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ object ScalaClassLoader {
6262
def setContext(cl: ClassLoader) = Thread.currentThread.setContextClassLoader(cl)
6363

6464
def fromURLsParallelCapable(urls: Seq[URL], parent: ClassLoader | Null = null): URLClassLoader =
65-
new URLClassLoader(urls.toArray, if parent == null then bootClassLoader else parent)
65+
new URLClassLoader(urls.toArray, if parent == null then ClassLoader.getSystemClassLoader.getParent else parent)
6666

6767
@sharable private[this] val bootClassLoader: ClassLoader =
6868
if scala.util.Properties.isJavaAtLeast("9") then

0 commit comments

Comments
 (0)