Do not run annotation processor in javac integrated tests
Annotation processor can be found in javaslang-2.0.6.jar library. This jar should be in classpath because it used in compiler (not as annotation processor of course). Before migration to GSK this library was also in classpath and it isn't clear, why it not recognised as an annotation processor. Anyway, for this tests we should'nt run annotation processors
This commit is contained in:
+2
-1
@@ -81,7 +81,8 @@ abstract class AbstractCompileKotlinAgainstJavaTest : TestCaseWithTmpdir() {
|
||||
environment.configuration.put(JVMConfigurationKeys.COMPILE_JAVA, true)
|
||||
environment.configuration.put(JVMConfigurationKeys.OUTPUT_DIRECTORY, outDir)
|
||||
environment.registerJavac(javaFiles = javaFiles,
|
||||
kotlinFiles = listOf(KotlinTestUtils.loadJetFile(environment.project, ktFiles.first())))
|
||||
kotlinFiles = listOf(KotlinTestUtils.loadJetFile(environment.project, ktFiles.first())),
|
||||
arguments = arrayOf("-proc:none"))
|
||||
if (!ktFiles.isEmpty()) {
|
||||
LoadDescriptorUtil.compileKotlinToDirAndGetModule(ktFiles, outDir, environment)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user