Sep 7, 2018 · 1 min read
As of Kotlin 1.2.60, the @Repeatable does not behave as is does in Java 8. More specifically, you can use @Repeatable annotations only if you set @Retention(RetentionPolicy.SOURCE) . This means that you cannot use repeatable annotations for reflection (at run-time), regardless on whether the annotation itself is declared in Java or in Kotlin.
The workaround is to use the container annotation, as in Java pre-8. You kind follow the status of this request in the Kotlin bugtracker over at https://youtrack.jetbrains.com/issue/KT-12794 .
