c604577132
Normally, 'DefaultErrorMessages' extensions should only be loaded from the main compiler JAR. However, in the in-process JPS build, there are two versions of the compiler classes in the process, and 'ClassLoader's there are not fully isolated. 'ServiceManager' loads extensions from both 'META-INF' locations. If the JPS plugin bundles newer compiler components, newly appeared 'DefaultErrorMessages' extensions will be loaded from the JPS (parent) 'ClassLoader', causing an exception. Such a problem appeared with 'DefaultErrorMessagesWasm': - - - - - java.util.ServiceConfigurationError: org.jetbrains.kotlin.diagnostics.rendering.DefaultErrorMessages$Extension: org.jetbrains.kotlin.wasm.resolve.diagnostics.DefaultErrorMessagesWasm not a subtype - - - - -