[FE 1.0] Support java sealed classes
^KT-46778 Fixed
This commit is contained in:
committed by
teamcityserver
parent
972211f8e6
commit
fa1d09c778
+9
-1
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user