[Test] Migrate tests for java 9 to regular test infrastructure

This commit is contained in:
Dmitriy Novozhilov
2021-07-14 13:27:10 +03:00
committed by teamcityserver
parent ca214bef30
commit 4f73ebbcbd
28 changed files with 303 additions and 246 deletions
+18
View File
@@ -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"
}