https://kotlinlang.org logo
#announcements
Title
# announcements
a

adams2

11/18/2019, 5:24 PM
do
.javaClass
and
::class.java
return different values
t

trevjones

11/18/2019, 7:12 PM
.javaClass
is used on an instance to get the class at runtime.
::class.java
is used on a type name or reified generic and is resolvable at compile time. ie
"someMessage".javaClass
vs
String::class.java