Joshua Hansen
12/23/2024, 11:49 PMBoolean::class.java == java.lang.Boolean::class.java // falseGleb Minaev
12/24/2024, 12:07 AMpublic fun testKClassesEquality(c1: KClass*, c2: KClass*): Boolean = c1.qualifiedName == c2.qualifiedName
But I am not sure this is enough.Gleb Minaev
12/24/2024, 12:11 AMephemient
12/24/2024, 1:50 AMBoolean::class.javaPrimitiveType and Boolean::class.javaObjectTypeephemient
12/24/2024, 1:56 AMBoolean::class == java.lang.Boolean::class.java.kotlinJoshua Hansen
12/24/2024, 1:58 AMjava.lang.Boolean::class.java.kotlin lets us go from a Java class to a Kotlin class. But if I'm given a Kotlin class, to convert that to a Java class, I should use .javaPrimitiveType?ephemient
12/24/2024, 1:59 AMephemient
12/24/2024, 1:59 AMJoshua Hansen
12/24/2024, 2:02 AMBoolean::class.java does that give the boxed type or primitive?ephemient
12/24/2024, 2:02 AMT::class.java you get the primitive type if it exists and the reference type otherwiseJoshua Hansen
12/24/2024, 2:03 AM