How to use Java AnnotationLiteral for KotlinClass?


Hi All, is there any way to use an AnnotationLiteral from plain Java for a KotlinClass ? I need as result inside the Java side a class with this annotationlitaral.

best Greetings


As far as I can understand, you want to create annotation literal in Kotlin. Kotlin's annotation classes are final now, so you can't sublass for it, here the bug report I have created: KT-4493

If I didn’t get your request correctly, please clarify it.