Kotlin / dokka

API documentation engine for Kotlin
https://kotl.in/dokka
Apache License 2.0
3.35k stars 398 forks source link

[K2] Replace `JavaToKotlinClassMap` with stable one #3226

Open vmishenev opened 9 months ago

vmishenev commented 9 months ago

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

IgnatBeresnev commented 7 months ago

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?