Update JDK in AdditionalBuiltInsMembersSignatureListsTest to 17

So, we're slowly getting rid of the hack with LATE_JDK_SIGNATURES
which is necessary because there's no freshest JDK available at
build agents.

But hope, it would be removed once JDK 21 is there (see KT-58716).
This commit is contained in:
Denis.Zharkov
2023-05-16 18:30:41 +02:00
committed by Space Team
parent b0c5d26d92
commit d7559b8972
@@ -32,7 +32,7 @@ import org.jetbrains.kotlin.test.TestJdkKind
class AdditionalBuiltInsMembersSignatureListsTest : KotlinTestWithEnvironment() {
override fun createEnvironment(): KotlinCoreEnvironment {
return createEnvironmentWithJdk(ConfigurationKind.JDK_ONLY, TestJdkKind.FULL_JDK)
return createEnvironmentWithJdk(ConfigurationKind.JDK_ONLY, TestJdkKind.FULL_JDK_17)
}
fun testAllListedSignaturesExistInJdk() {
@@ -76,8 +76,6 @@ class AdditionalBuiltInsMembersSignatureListsTest : KotlinTestWithEnvironment()
}
private val LATE_JDK_SIGNATURES = mapOf(
"java/lang/String" to setOf("isBlank()Z", "lines()Ljava/util/stream/Stream;", "repeat(I)Ljava/lang/String;"),
"java/lang/CharSequence" to setOf("isEmpty()Z"),
"java/util/List" to setOf(
// From JDK 21
"addFirst(Ljava/lang/Object;)V",