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:
committed by
Space Team
parent
7d584e0eb4
commit
672b5ba0d7
-4
@@ -33,7 +33,3 @@ MODULE main
|
||||
---
|
||||
K2
|
||||
values
|
||||
K1
|
||||
---
|
||||
K2
|
||||
remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses
|
||||
// JVM_ABI_K1_K2_DIFF: KT-57268, KT-63828
|
||||
// JVM_ABI_K1_K2_DIFF: KT-63828
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class Wrapper(val id: Int)
|
||||
|
||||
-4
@@ -33,7 +33,3 @@ MODULE main
|
||||
---
|
||||
K2
|
||||
values
|
||||
K1
|
||||
---
|
||||
K2
|
||||
remove(Ljava/lang/Object;Ljava/lang/Object;)Z [public]
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// WITH_STDLIB
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
// LANGUAGE: +ValueClasses, +GenericInlineClassParameter
|
||||
// JVM_ABI_K1_K2_DIFF: KT-57268, KT-63828
|
||||
// JVM_ABI_K1_K2_DIFF: KT-63828
|
||||
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class Wrapper<T: Int>(val id: T)
|
||||
|
||||
Reference in New Issue
Block a user