https://kotlinlang.org logo
#kapt
Title
# kapt
m

mannodermaus

08/25/2017, 8:39 AM
I’m trying to make my annotation processor support both annotated Java & Kotlin classes, but using a different code generation path for the latter. Is there a way to know that the annotated class is written in Kotlin originally? Seems like
@kotlin.Metadata
isn’t detectable from the processor’s environment. This guy has had a similar issue: https://discuss.kotlinlang.org/t/kotlin-data-classes-inspection-from-annotation-processor/2163
🙇 1
Update: With Kotlin 1.1.3+,
@kotlin.Metadata
is properly advertised for processors