Don't store class loader in CompilerEnvironment
Modules jps-plugin and ide-compiler-runner are loaded by the same class loader
Original commit: 0d671141d0
This commit is contained in:
@@ -169,16 +169,14 @@ public class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR
|
|||||||
.register(javaClass<IncrementalCacheProvider>(), IncrementalCacheProviderImpl(incrementalCaches))
|
.register(javaClass<IncrementalCacheProvider>(), IncrementalCacheProviderImpl(incrementalCaches))
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
val environment = CompilerEnvironment.getEnvironmentFor(
|
return CompilerEnvironment.getEnvironmentFor(
|
||||||
PathUtil.getKotlinPathsForJpsPluginOrJpsTests(),
|
PathUtil.getKotlinPathsForJpsPluginOrJpsTests(),
|
||||||
javaClass.getClassLoader(),
|
|
||||||
{ className ->
|
{ className ->
|
||||||
className!!.startsWith("org.jetbrains.jet.lang.resolve.kotlin.incremental.cache.")
|
className.startsWith("org.jetbrains.jet.lang.resolve.kotlin.incremental.cache.")
|
||||||
|| className == "org.jetbrains.jet.config.Services"
|
|| className == "org.jetbrains.jet.config.Services"
|
||||||
},
|
},
|
||||||
compilerServices
|
compilerServices
|
||||||
)
|
)
|
||||||
return environment
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getOutputItemsAndTargets(
|
private fun getOutputItemsAndTargets(
|
||||||
|
|||||||
Reference in New Issue
Block a user