[FE 1.0] Support java sealed classes

^KT-46778 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-07-14 11:35:20 +03:00
committed by teamcityserver
parent 972211f8e6
commit fa1d09c778
32 changed files with 365 additions and 38 deletions
@@ -116,7 +116,10 @@ public class KtTestUtil {
@NotNull
private static File getJdkHome(@NotNull String prop, @Nullable String otherProp, @NotNull String propToReport) {
String jdk = System.getenv(prop);
String jdk = System.getProperty(prop);
if (jdk == null) {
jdk = System.getenv(prop);
}
if (jdk == null) {
if (otherProp != null) {
return getJdkHome(otherProp, null, prop);
@@ -152,6 +155,11 @@ public class KtTestUtil {
return getJdkHome("JDK_15", "JDK_15_0");
}
@NotNull
public static File getJdk17Home() {
return getJdkHome("JDK_17_0", "JDK_17");
}
@NotNull
public static String getTestDataPathBase() {
return getHomeDirectory() + "/compiler/testData";