dokka icon indicating copy to clipboard operation
dokka copied to clipboard

[K2] Replace `JavaToKotlinClassMap` with stable one

Open vmishenev opened this issue 1 year ago • 1 comments

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.

vmishenev avatar Oct 17 '23 16:10 vmishenev

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

IgnatBeresnev avatar Dec 15 '23 13:12 IgnatBeresnev