Fix configuration for FastClassReading foreign-annotations tests
Prior to this change USE_FAST_CLASS_FILES_READING actually
has not worked because the flag is being read in the KotlinCoreEnvironment
constructor 🤦♂️
This commit is contained in:
+3
-8
@@ -86,20 +86,15 @@ public abstract class KotlinMultiFileTestWithJava<M, F> extends KtUsefulTestCase
|
||||
ContentRootsKt.addKotlinSourceRoot(configuration, kotlinSourceRoot.getPath());
|
||||
}
|
||||
|
||||
KotlinCoreEnvironment environment =
|
||||
KotlinCoreEnvironment.createForTests(getTestRootDisposable(), configuration, getEnvironmentConfigFiles());
|
||||
performCustomConfiguration(
|
||||
environment
|
||||
);
|
||||
|
||||
return environment;
|
||||
performCustomConfiguration(configuration);
|
||||
return KotlinCoreEnvironment.createForTests(getTestRootDisposable(), configuration, getEnvironmentConfigFiles());
|
||||
}
|
||||
|
||||
protected boolean isJavaSourceRootNeeded() {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected void performCustomConfiguration(@NotNull KotlinCoreEnvironment environment) {
|
||||
protected void performCustomConfiguration(@NotNull CompilerConfiguration configuration) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user