K2/Java: implement platform-dependent function filtering in JvmMappedScope

We drop Kotlin function 'remove' or 'getOrDefault' from JvmMappedScope,
if it has platform-dependent annotation, and the bound Java class scope
does not contain a function with the same signature.

#KT-57268 Fixed
This commit is contained in:
Mikhail Glukhikh
2024-01-24 16:50:47 +01:00
committed by Space Team
parent 7d584e0eb4
commit 672b5ba0d7
87 changed files with 352 additions and 373 deletions
@@ -1,15 +0,0 @@
MODULE main
CLASS SuspendingMutableMap.class
K1
---
K2
remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public]
CLASS MapSuspendAbstractClearKt$box$1$map$1.class
K1
---
K2
getOrDefault(II)Ljava/lang/Integer; [public, bridge]
K1
---
K2
getOrDefault(Ljava/lang/Object;I)Ljava/lang/Integer; [public, final, bridge]
@@ -1,5 +1,4 @@
// WITH_STDLIB
// JVM_ABI_K1_K2_DIFF: KT-57268
import kotlin.coroutines.*
@@ -1,6 +0,0 @@
MODULE main
CLASS SuspendingMutableMap.class
K1
---
K2
remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public]
@@ -1,5 +1,4 @@
// WITH_STDLIB
// JVM_ABI_K1_K2_DIFF: KT-57268
import kotlin.coroutines.*