Paul Woitaschek
02/15/2016, 10:08 AMyole
02/15/2016, 10:14 AMribesg
02/15/2016, 10:15 AMyole
02/15/2016, 10:15 AMmichaelrocks
02/15/2016, 10:15 AMval annotation = javaClass.getDeclaredField(annotationName).getAnnotation(annotationClass)
And when I’m trying to call annotation.annotationType()
Kotlin compiler says there’s no such method.michaelrocks
02/15/2016, 10:17 AMAnnotation
to Kotlin Annotation
, which doesn’t have this method. But Kotlin Annotation
has an extension field annotationClass
. I assume it’s the same as annotationType()
but it requires Kotlin reflection library.yole
02/15/2016, 10:18 AMilya.gorbunov
02/15/2016, 11:43 AMannotationClass.java
is the replacement for annotationType()
. Reflection library should not be required for this extension property to work.michaelrocks
02/15/2016, 12:15 PMannotationClass
usage as a warning Call uses reflection API which is not found in compilation classpath. Make sure you have kotlin-reflect.jar in the classpath
.michaelrocks
02/15/2016, 12:18 PMannotation.annotationClass
with a Java class. I forgot to add .java
. Sorry simple smileorangy
Eugenio
02/15/2016, 12:59 PMipvans
02/15/2016, 12:59 PMEugenio
02/15/2016, 12:59 PMGuedes
02/15/2016, 1:00 PMksmirenko
02/15/2016, 1:00 PMhannesstruss
02/15/2016, 1:00 PMjohannes.lagos
02/15/2016, 1:00 PMantonioleiva
02/15/2016, 1:00 PMjohannes.lagos
02/15/2016, 1:00 PMjohannes.lagos
02/15/2016, 1:00 PMjuandiana
02/15/2016, 1:01 PMjkbbwr
02/15/2016, 1:01 PMdebug
02/15/2016, 1:01 PMnhaarman
02/15/2016, 1:01 PMaltero
02/15/2016, 1:01 PMmagnucki
02/15/2016, 1:01 PMdayanruben
02/15/2016, 1:02 PMmarcelohd
02/15/2016, 1:03 PMjkbbwr
02/15/2016, 1:03 PM