diff --git a/compiler/test-infrastructure-utils/tests/org/jetbrains/kotlin/test/util/KtTestUtil.java b/compiler/test-infrastructure-utils/tests/org/jetbrains/kotlin/test/util/KtTestUtil.java index f0cce7af447..6c9fe020f81 100644 --- a/compiler/test-infrastructure-utils/tests/org/jetbrains/kotlin/test/util/KtTestUtil.java +++ b/compiler/test-infrastructure-utils/tests/org/jetbrains/kotlin/test/util/KtTestUtil.java @@ -124,7 +124,7 @@ public class KtTestUtil { if (otherProp != null) { return getJdkHome(otherProp, null, prop); } else { - return getJdkHome("JDK_8", "JDK_18"); + throw new AssertionError("Environment variable " + propToReport + " is not set!"); } } return new File(jdk);