diff --git a/src/main/kotlin/io/bazel/kotlin/builder/toolchain/KotlinToolchain.kt b/src/main/kotlin/io/bazel/kotlin/builder/toolchain/KotlinToolchain.kt index a47bf4d09..26063b6e6 100644 --- a/src/main/kotlin/io/bazel/kotlin/builder/toolchain/KotlinToolchain.kt +++ b/src/main/kotlin/io/bazel/kotlin/builder/toolchain/KotlinToolchain.kt @@ -24,13 +24,13 @@ import org.jetbrains.kotlin.preloading.ClassPreloadingUtils import org.jetbrains.kotlin.preloading.Preloader import java.io.File import java.io.PrintStream +import java.lang.ClassLoader import java.lang.reflect.Method import java.nio.file.FileSystems import java.nio.file.Path import java.nio.file.Paths import javax.inject.Inject import javax.inject.Singleton -import java.lang.ClassLoader class KotlinToolchain private constructor( private val baseJars: List, @@ -175,7 +175,6 @@ class KotlinToolchain private constructor( } } - private fun createClassLoader( javaHome: Path, baseJars: List, @@ -197,7 +196,6 @@ class KotlinToolchain private constructor( throw RuntimeException("$javaHome, $baseJars", it) }.getOrThrow() - val classLoader by lazy { createClassLoader( JAVA_HOME,