Skip to content

JVM Module name is changed for libraries #2105

Closed

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions