Bernhard
02/02/2019, 8:19 AMPavlo Liapota
02/02/2019, 8:48 AMcompatible with java
?
You can assess Kotlin property from Java.
@JvmField
instructs compiler to define just a field instead of getter, setter and backing field.Bernhard
02/02/2019, 8:49 AMPavlo Liapota
02/02/2019, 9:07 AMjava.lang.reflect.Field
from java reflection or kotlin reflection?
If latter, then this https://kotlinlang.org/docs/reference/reflection.html#interoperability-with-java-reflection may help.Bernhard
02/02/2019, 9:27 AMPavlo Liapota
02/02/2019, 9:33 AMno, just plainly accessing the field without getterAh, I see, then yes, you need
@JvmField
to do so.Bernhard
02/02/2019, 9:36 AM