https://kotlinlang.org logo
#announcements
Title
# announcements
x

x80486

06/16/2017, 11:35 PM
If I use the Kotlin annotations, it doesn't work...if not, everything is OK...
r

radityagumay

06/16/2017, 11:40 PM
vadimvera: which kotlin version you used?
vadimvera: I am create annotation processor in kotlin and it working
x

x80486

06/16/2017, 11:41 PM
I'm using version
1.1.2-2
in a Spring Boot project
j

janvladimirmostert

06/16/2017, 11:54 PM
@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

x80486

06/16/2017, 11:57 PM
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

janvladimirmostert

06/16/2017, 11:59 PM
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
4 Views