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

trevjones

11/13/2017, 5:13 PM
and you can only
Foo.javaClass
if it has a companion object
l

louiscad

11/14/2017, 8:30 AM
Foo.javaClass
on the Companion object IS NOT THE SAME as
Foo::class.java
.
fooInstance.javaClass
is the same as
Foo::class.java
though. For Companion objects,
Foo.javaClass
is the same as
Foo.Companion::class.java
.
t

trevjones

11/14/2017, 2:36 PM
yes of course. although what I said was less than explicitly clear about that detail
3 Views