javaClass

Returns the runtime Java class of this object.

Since Kotlin

1.0

@get:JvmName(name = "getRuntimeClassOfKClassInstance")
val <T : Any> KClass<T>.javaClass: Class<KClass<T>>(source)

Deprecated (with error)

Use 'java' property to get Java class corresponding to this Kotlin class or cast this instance to Any if you really want to get the runtime Java class of this implementation of KClass.

Replace with

(this as Any).javaClass

Since Kotlin

1.0