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

Add migration rewrite for non-named arguments in Java annotations #21397

Merged

Conversation

WojciechMazur
Copy link
Contributor

@WojciechMazur WojciechMazur commented Aug 19, 2024

Followup to #21329
It might be beneficial for Scala 3.6 migration to allow for an automatic rewrite of unnamed Java annotation parameters to ease the migration.
We can assume that already compiling code is already using correct positions for annotation arguments.
Based on that, we can use the order of the annotation decls and their indexes to assume the names of annotation arguments

@hamzaremmal hamzaremmal merged commit 30317cd into scala:main Aug 20, 2024
28 checks passed
@WojciechMazur WojciechMazur deleted the migration-rewrite/java-annotations branch August 20, 2024 13:09
@WojciechMazur WojciechMazur added this to the 3.6.0 milestone Oct 8, 2024
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.

2 participants