If I use the Kotlin annotations, it doesn't work.....
# announcements
x
If I use the Kotlin annotations, it doesn't work...if not, everything is OK...
r
vadimvera: which kotlin version you used?
vadimvera: I am create annotation processor in kotlin and it working
x
I'm using version
1.1.2-2
in a Spring Boot project
j
@x80486 which annotation processors are you using? If it’s Spring’s annotation processor, it’s probably looking for Java annotations and not Kotlin annotations.
x
It might be something related with that. The Koltin ones:
@kotlin.annotation.Retention(AnnotationRetention.RUNTIME)
and
@kotlin.annotation.Target(AnnotationTarget.TYPE)
don't work; I use the Java ones (
java.lang.annotation.*
), everything is fine...so in the end it may be a Spring thing 😁
j
It’s been a while since I used spring, but the default used to be AOP, aspectJ is more powerful and could potentially process those Kotlin annotations, but that’s a rabbit hole that still gives me nightmares.
😅 1