Skip to content

JVM Module name is changed for libraries #2105

@kuanyingchou

Description

@kuanyingchou

Not sure if it's intended and this happens in both KSP1 and KSP2. The module name of libraries become "$Library for XXX" if it's not specified with "-module-name" with a name other than "main" while compiling. So internal function names in libraries become, say, "f$$Library for main" instead of "f$main".

This may come from here: https://github.com/google/ksp/blob/main/kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/KotlinSymbolProcessing.kt#L193

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions