dokka
dokka copied to clipboard
[K2] Replace `JavaToKotlinClassMap` with stable one
JavaToKotlinClassMap
is from the compiler artifact. After removing the compiler from dependencies in Dokka K2, JavaToKotlinClassMap
can be unavailable.
We can use it from reflection, but kotlin.reflect.jvm.internal.impl.builtins.jvm.JavaToKotlinClassMap
is internal and is not stable.
It needs to find a substitution of JavaToKotlinClassMap
.
Possible solutions
- Research
KtJvmTypeMapperMixIn
from Analysis API. Can Dokka use it? - Ask the Analysis API team to add it.
It's unclear whether it should be part of analysis API, but at the very least we can use the publicly exposed JavaToKotlinClassMap
from kotlin.reflect
.
Needs more research, not a blocker for the release.
__
Is it blocking?
- Testing: no
- Beta: no
- Release: nice to have