Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JVM Module name is changed for libraries #2105

Closed
kuanyingchou opened this issue Sep 17, 2024 · 0 comments · Fixed by #2106
Closed

JVM Module name is changed for libraries #2105

kuanyingchou opened this issue Sep 17, 2024 · 0 comments · Fixed by #2106
Milestone

Comments

@kuanyingchou
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants