File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/main/kotlin/io/bazel/kotlin/builder/toolchain Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import io.bazel.kotlin.builder.utils.BazelRunFiles
20
20
import io.bazel.kotlin.builder.utils.resolveVerified
21
21
import io.bazel.kotlin.builder.utils.verified
22
22
import io.bazel.kotlin.builder.utils.verifiedPath
23
+ import org.jetbrains.kotlin.preloading.ClassCondition
23
24
import org.jetbrains.kotlin.preloading.ClassPreloadingUtils
24
25
import org.jetbrains.kotlin.preloading.Preloader
25
26
import java.io.File
@@ -233,9 +234,11 @@ class KotlinToolchain private constructor(
233
234
}
234
235
},
235
236
Preloader .DEFAULT_CLASS_NUMBER_ESTIMATE ,
236
- classLoader,
237
- null ,
238
- )
237
+ classLoader
238
+ ) { className ->
239
+ // Preload guava to avoid weird isolation issues.
240
+ className.startsWith(" com.google.common." )
241
+ }
239
242
}.onFailure {
240
243
throw RuntimeException (" $javaHome , $baseJars " , it)
241
244
}.getOrThrow()
You can’t perform that action at this time.
0 commit comments