8000 Support Java 21 and 22 constructs in `.ajava` files · Issue #7016 · typetools/checker-framework · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support Java 21 and 22 constructs in .ajava files #7016

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

Open
msridhar opened this issue Mar 31, 2025 · 0 comments
Open

Support Java 21 and 22 constructs in .ajava files #7016

msridhar opened this issue Mar 31, 2025 · 0 comments

Comments

@msridhar
Copy link
Contributor
msridhar commented Mar 31, 2025

This requires support from JavaParser (or switching to a different parsing approach). Right now in certain places we bail out for these Java versions, e.g.:

// TODO: Make annotation insertion work for Java 21.
|| root.getSourceFile().toUri().toString().contains("java21")
|| root.getSourceFile().toUri().toString().contains("java22")) {

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

No branches or pull requests

1 participant
0