I’m trying to make my annotation processor support...
# kapt
m
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