👋 I'm trying out KSP from HEAD and running into an issue regarding mangled JVM names for internal functions. I don't think they appear to match the 2.1 compiler? For example, if a function
internal fun mangled()
existed in an Android module
:nested:library
within its
debug
sourceset, then the mangled name generated by the compiler is
mangled$nested_library_debug
. However, KSP is returning
mangled$library
. Doing a quick test, the compiler seems generate mangled names differently?
// Within src/main for a given JVM library, :nested:library
// Within src/debug for a given Android library, :nested:library
package dev.jonamireh
class MangledClass {
internal fun mangled(): Boolean = true
}
In a JVM module, the compiler generates
mangled$library
. In an Android module, the compiler generates
mangled$nested_library_debug
. It seems as though KSP is only using the JVM variant of generating mangled names. Is there an open issue for this or how can I report this effectively? I'm not even sure which right 😅