javaType

JVM
1.4
@ExperimentalStdlibApi val KType.javaType: Type
(source)

Returns a Java Type instance corresponding to the given Kotlin type.

This function is experimental because not all the features are supported yet, and behavior might change in corner cases. In particular, the following is not supported correctly or at all: