Minor. Added comment.
This commit is contained in:
committed by
Pavel V. Talanov
parent
42a6543c25
commit
d62f946238
@@ -41,6 +41,7 @@ public class MockLibraryUtil {
|
|||||||
try {
|
try {
|
||||||
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
|
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
|
||||||
|
|
||||||
|
// Running compiler in custom class loader to avoid effects caused by replacing Application with another one created in compiler.
|
||||||
File kotlinCompilerJar = new File(PathUtil.getKotlinPathsForDistDirectory().getLibPath(), "kotlin-compiler.jar");
|
File kotlinCompilerJar = new File(PathUtil.getKotlinPathsForDistDirectory().getLibPath(), "kotlin-compiler.jar");
|
||||||
URLClassLoader classLoader = new URLClassLoader(new URL[] {kotlinCompilerJar.toURI().toURL()}, Object.class.getClassLoader());
|
URLClassLoader classLoader = new URLClassLoader(new URL[] {kotlinCompilerJar.toURI().toURL()}, Object.class.getClassLoader());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user