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
null
value in annotation arguments if annotation originates from Java and argument is Kotlin's const val
#839
Comments
null
value in annotation arguments if annotation originates from Java and argument is Kotlin const val
null
value in annotation arguments if annotation originates from Java and argument is Kotlin's const val
I've edited the description, as it indeed only fails to resolve, if |
The issue is that I'm not sure how to correctly resolve the issue, for now it seems that |
Also this leaves us with the fundamental problem - how to model synthetic file facades in KSP, if they are used as classes directly, like in |
I am thinking about adding a synthetic implementation of |
One problem I can think of is the name mangling, we might end up replicating the name mangling logic for file classes. |
Thanks for the fix! |
Assume we have a Kotlin source, named
Constants.kt
, as follows:And a Java source:
When
@Named
annotation (KSAnnotationJavaImpl
) is resolved, it yields["value:null"]
from itsarguments
property, with no way to retrieve the"foo"
value.Named = javax.inject.Named for completeness.
So, basically, Kotlin constants are not properly resolved in Java annotation arguments.
The text was updated successfully, but these errors were encountered: