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

fix modifier calculation for synthetic members #1769

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

neetopia
Copy link
Collaborator

test result is only modified for KSP2 for the reason that KSP2 treats Java annotation values as properties while KSP1 treats it as functions, therefore the test processor does not look into Java annotation values in KSP1.

One change to shared logic: isOpen() should always check for FINAL modifier first, this hasn't been an issue for KSP1 since certain synthetic members of data class (namely componentX) is not generated in KSP1, but ran into issue with KSP2 where the OVERRIDE modifier present in componentX take over the isOpen check.

@neetopia
Copy link
Collaborator Author

fixes #1759

@neetopia neetopia merged commit dcdecd7 into google:main Mar 5, 2024
3 checks passed
@neetopia neetopia deleted the synthetic-modifier branch March 5, 2024 18:29
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] IllegalStateException when getting the modifiers from properties in a Java annotation declaration
2 participants