Sergej Shafarenka
04/21/2019, 10:36 AM@JvmOverloads annotation from the overloaded constructors. I use standard executableElement.getAnnotation(JvmOverloads::class.java) for that. When I add @JvmOverloads to Java classes for simulating it in tests, it works just fine. When the same code runs through kapt on Kotlin generated classes in an Android project, getAnnotation(JvmOverloads::class.java) always returns null event though JvmOverloads annotation is present in decompiled Kotlin classes in that project. Does anybody have an idea why it is like that?
The code can be found here: https://github.com/beworker/magnet/pull/86/files#diff-6c6b1cdd6b90d6064f257017dff243b4R142