There’s a strange problem when using Java annotati...
# announcements
m
There’s a strange problem when using Java annotations. I have the following code:
Copy code
val annotation = javaClass.getDeclaredField(annotationName).getAnnotation(annotationClass)
And when I’m trying to call
annotation.annotationType()
Kotlin compiler says there’s no such method.