Fix codegen tests on JDK 9 with jdkKind = FULL_JDK

This commit is contained in:
Alexander Udalov
2017-06-28 20:22:30 +03:00
parent 4bd9866975
commit 0f4684da67
@@ -506,6 +506,9 @@ public class KotlinTestUtils {
configuration.put(JVMConfigurationKeys.JDK_HOME, home);
}
}
else if (SystemInfo.IS_AT_LEAST_JAVA9) {
configuration.put(JVMConfigurationKeys.JDK_HOME, new File(System.getProperty("java.home")));
}
else {
JvmContentRootsKt.addJvmClasspathRoots(configuration, PathUtil.getJdkClassesRootsFromCurrentJre());
}