adams2
11/18/2019, 5:24 PM.javaClass
and ::class.java
return different valuestrevjones
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