From d8366a2861821f2559f8d8d46577cd06b945f0b0 Mon Sep 17 00:00:00 2001 From: Victor Petukhov Date: Thu, 9 Dec 2021 17:26:31 +0300 Subject: [PATCH] Don't use hardcoded getJdkHome's parameters as fallback in KtTestUtil.java --- .../tests/org/jetbrains/kotlin/test/util/KtTestUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);