Why does this work: ``` val m = JSONParser::class....
# reflect
m
Why does this work:
Copy code
val m = JSONParser::class.java.getAnnotation(Metadata::class.java)
but this returns `null`:
Copy code
val m = JSONParser::class.findAnnotation<Metadata>()
🤔
u
Kotlin reflection presents the picture that is seen from Kotlin’s point of view, and by that logic, there’s no annotation on the JSONParser class
m
I see, thanks