Is it true KClass is automatically converted to a Class when being passed to an annotation? wondering because I'm trying to use this annot https://github.com/google/auto/tree/master/service and it doesn't work when using it from kotlin
đź‘Ś 1
s
Shawn
10/17/2019, 6:44 PM
you’ll probably just want to use
YourClass::class.java
e
elaborate tissue
10/17/2019, 6:46 PM
@AutoService(MyServiceInterface::class.java)
gives a compile error
"An annotation argument must be a compile-time constant"