JVM: allow -jvm-target 1.8 with -Xjdk-release=1.6

#KT-59098
This commit is contained in:
Alexander Udalov
2024-02-14 13:34:00 +01:00
committed by Space Team
parent 1bc08fc5b8
commit 12f393791b
8 changed files with 53 additions and 2 deletions
@@ -251,6 +251,9 @@ public abstract class AbstractCliTest extends TestCaseWithTmpdir {
return null;
}
if (arg.equals("$JDK_1_8")) return KtTestUtil.getJdk8Home().getAbsolutePath();
if (arg.equals("$JDK_11_0")) return KtTestUtil.getJdk11Home().getAbsolutePath();
String argWithColonsReplaced = arg
.replace("\\:", "$COLON$")
.replace(":", File.pathSeparator)