diff --git a/libraries/stdlib/src/kotlin/jvm/ClassMapping.kt b/libraries/stdlib/src/kotlin/jvm/ClassMapping.kt index 7686333aed4..25f183f03d9 100644 --- a/libraries/stdlib/src/kotlin/jvm/ClassMapping.kt +++ b/libraries/stdlib/src/kotlin/jvm/ClassMapping.kt @@ -21,9 +21,9 @@ package kotlin.jvm import kotlin.jvm.internal.Reflection import kotlin.reflect.KClass -@Deprecated("Provided for binary compatibility", level = DeprecationLevel.HIDDEN) +@Deprecated("Use 'java' extension property instead.", ReplaceWith("this.java"), level = DeprecationLevel.ERROR) public fun KClass.getJava(): Class = this.java -@Deprecated("Provided for binary compatibility", level = DeprecationLevel.HIDDEN) +@Deprecated("Use 'kotlin' extension property instead.", ReplaceWith("this.kotlin"), level = DeprecationLevel.ERROR) public fun Class.getKotlin(): KClass = Reflection.createKotlinClass(this) as KClass