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 a language level option for parsing #232

Merged
merged 14 commits into from
May 15, 2024
Merged

Conversation

msridhar
Copy link
Member

@msridhar msridhar commented May 14, 2024

Needed to work around javaparser/javaparser#4041. Users impacted by that issue can set the language level to 11, assuming they are not using language constructs introduced after that version.

@msridhar
Copy link
Member Author

One thought here. Since we have already released a version of the annotator with the default language level as 17, switching the default to 11 would be a breaking change. Should we stick with the default level of 17 maybe? I think that would work fine in nearly all case; as of now, we only need configurability here because of javaparser/javaparser#4041. At Uber we could easily just configure the level to be 11.

@msridhar msridhar marked this pull request as ready for review May 14, 2024 22:11
@msridhar msridhar changed the title [WIP] Add a language level option for parsing and default to Java 11 Add a language level option for parsing May 14, 2024
@nimakarimipour nimakarimipour merged commit c2359ee into master May 15, 2024
7 checks passed
@nimakarimipour nimakarimipour deleted the language-level-option branch May 15, 2024 05:05
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