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

Paul Woitaschek

08/22/2017, 9:52 PM
Actually fascinating. That means you can null out a late init property from java
a

artem_zin

08/22/2017, 9:55 PM
yep, or through reflection
p

Paul Woitaschek

08/22/2017, 9:56 PM
if you use reflection you know you are fishing in dangerous waters
but for a java caller this is just a public field
a

artem_zin

08/22/2017, 9:59 PM
well it has
@NonNull
on it…
p

Paul Woitaschek

08/22/2017, 10:01 PM
Looks like a bug to me
You are really hard bound to your impementation like that
k

kingsley

08/23/2017, 7:18 PM
Well. Technically, it's
null
until assigned. If you null it out, then you get uninitialized exception. Looks okay to me
p

Paul Woitaschek

08/23/2017, 7:34 PM
No, that's the point. It's a field, not an accessor
2 Views