What’s on the classpath used by the proxies returned from
getAnnotationsByType
? Is it expected that
KClass
annotation parameters that reference user-defined classes won’t work?
Both of these examples fail with a
KSTypesNotPresentException
ultimately caused by a
ClassNotFoundException
if I try to access the
includes
property on the proxy:
@Module class First
@Module(includes = [First::class]) Second
@Module(includes = [FromUpstreamModule::class]) Third
This works (it’s invalid for unrelated reasons, but the class lookup works):
@Module(includes = [Unit::class]) Fourth
This fails with the same exception but for a slightly different reason - it’s trying to look up
kotlin.String
at runtime (presumably it should be translated to
java.lang.String
at some point for JVM projects):
@Module(includes = [String::class]) Fifth