https://kotlinlang.org logo
b

benny_wang

03/03/2016, 6:34 AM
help, I declare a annotation class
Copy code
koltin
@Retention(AnnotationRetention.BINARY)
@Target(AnnotationTarget.FIELD, AnnotationTarget.PROPERTY)
annotation class Property
I use it in delegate property, getElementsAnnotatedWith get nothing, but if I define it in java, things work fine. what is the problem?