We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0352a0 commit 3911fb3Copy full SHA for 3911fb3
src/main/kotlin/com/compiler/server/compiler/components/KotlinCompiler.kt
@@ -134,7 +134,7 @@ class KotlinCompiler(
134
.filter { it.name.endsWith(".kt") }
135
.associate { it.name to mutableListOf() }
136
137
- val toolchains = KotlinToolchains.loadImplementation(ClassLoader.getSystemClassLoader())
+ val toolchains = KotlinToolchains.loadImplementation(this::class.java.classLoader)
138
val jvmToolchain = toolchains.getToolchain(JvmPlatformToolchain::class.java)
139
val operation = jvmToolchain.createJvmCompilationOperation(sources, outputDir)
140
operation.compilerArguments.applyArgumentStrings(arguments)
0 commit comments