Is it true KClass is automatically converted to a ...
# announcements
e
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
you’ll probably just want to use
YourClass::class.java
e
@AutoService(MyServiceInterface::class.java) gives a compile error "An annotation argument must be a compile-time constant"
s
ahh, that’s true, my bad