Set correct base classloader for REPL evaluation
the contributed partial fix of KT-35925 set it to the system classloader which brought in many cases the compiler CP into the evaluation and lead to the problems like KT-40898. This fix set it to the extension/platform classloader, which preserves (partial) fix of the KT-35925 and do not bring the compiler jar into the REPL evaluation classpath. #KT-40898 fixed
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ class ReplInterpreter(
|
|||||||
ReplClassLoader(
|
ReplClassLoader(
|
||||||
URLClassLoader(
|
URLClassLoader(
|
||||||
classpathRoots.map { it.toURI().toURL() }.toTypedArray(),
|
classpathRoots.map { it.toURI().toURL() }.toTypedArray(),
|
||||||
ClassLoader.getSystemClassLoader()
|
ClassLoader.getSystemClassLoader()?.parent
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user