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

Do not use compiler hard-coded use-site target #2058

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

ting-yuan
Copy link
Collaborator

K2 attaches PROPERTY/FIELD unconditionally when deserializing properties/fields in JvmBinaryAnnotationDeserializer.

They cannot be used to determine whether there is a use-site target, or the annotation is immediately on the property/element in the source.

fixes #1882

ref: https://github.com/JetBrains/kotlin/blob/66ccc6ab3e6cade8a54f874bbed19535528efc96/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/JvmBinaryAnnotationDeserializer.kt#L114

@ting-yuan ting-yuan requested a review from dx404 August 26, 2024 23:45
K2 attaches PROPERTY/FIELD unconditionally when deserializing
properties/fields in JvmBinaryAnnotationDeserializer.

They cannot be used to determine whether there is a use-site target,
or the annotation is immediately on the property/element in the source.
@ting-yuan ting-yuan merged commit ffc4f9d into google:main Aug 27, 2024
3 checks passed
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 this pull request may close these issues.

[KSP2] Annotations got use-site target when there are none specified
2 participants