Use JDK 8 in AbstractCompileAgainstKotlin test
This commit is contained in:
committed by
Mikhail Glukhikh
parent
65aac7ae13
commit
a815125281
@@ -328,6 +328,11 @@ public class KotlinTestUtils {
|
||||
);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static KotlinCoreEnvironment createEnvironmentWithFullJdkAndIdeaAnnotations(Disposable disposable) {
|
||||
return createEnvironmentWithJdkAndNullabilityAnnotationsFromIdea(disposable, ConfigurationKind.ALL, TestJdkKind.FULL_JDK);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static String getTestDataPathBase() {
|
||||
return getHomeDirectory() + "/compiler/testData";
|
||||
@@ -593,7 +598,7 @@ public class KotlinTestUtils {
|
||||
@Nullable File javaErrorFile
|
||||
) throws IOException {
|
||||
if (!ktFiles.isEmpty()) {
|
||||
KotlinCoreEnvironment environment = createEnvironmentWithMockJdkAndIdeaAnnotations(disposable);
|
||||
KotlinCoreEnvironment environment = createEnvironmentWithFullJdkAndIdeaAnnotations(disposable);
|
||||
LoadDescriptorUtil.compileKotlinToDirAndGetModule(ktFiles, outDir, environment);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user