[Test] Use JDK 11 instead of JDK 9 in modern jdk tests

This commit is contained in:
Dmitriy Novozhilov
2021-07-30 18:51:44 +03:00
committed by teamcityserver
parent fd537e7d5a
commit 5206b45ce3
19 changed files with 175 additions and 169 deletions
@@ -0,0 +1,18 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM_IR
// ^ JVM_IR back-end generates SAM conversion with invokedynamic
// WITH_RUNTIME
fun box(): String {
val f = {}
val sam = Runnable(f)
val samJavaClass = sam::class.java
if (samJavaClass.simpleName != "")
throw Exception("samJavaClass.simpleName='${samJavaClass.simpleName}'")
if (!samJavaClass.isAnonymousClass())
throw Exception("!samJavaClass.isAnonymousClass(): '${samJavaClass.name}'")
return "OK"
}