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

Implement new Java 21 features in dataflow #6192

Merged
merged 122 commits into from
Oct 2, 2023

Conversation

smillst
Copy link
Member

@smillst smillst commented Sep 22, 2023

The checkers don't crash on the new features, but the new features are not yet soundly checked.

https://openjdk.org/jeps/440
https://openjdk.org/jeps/441

Fixes #6173 and fixes #5967.

mernst and others added 30 commits September 8, 2023 13:47
AnnotatedDeclaredType declaredType = (AnnotatedDeclaredType) varType;
for (AnnotatedTypeMirror atm : declaredType.getTypeArguments()) {
if (atm.hasPrimaryAnnotation(Unique.class)) {
} else if (tree.getType() != null) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went ahead and documented it everywhere.

@smillst smillst assigned mernst and unassigned smillst Sep 26, 2023
mernst
mernst previously approved these changes Sep 27, 2023
Copy link
Member

@mernst mernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see comments, then this can be merged.

@smillst
Copy link
Member Author

smillst commented Sep 28, 2023

@mernst Could you please re-review? I had to make more changes because I didn't realize that case null, default was allowed. (Thanks for catching that!)

@smillst smillst requested a review from mernst September 28, 2023 15:13
@msridhar
Copy link
Contributor

msridhar commented Oct 2, 2023

If this change is ready to go, it'd be helpful to NullAway if it gets included in the 3.39.0 release.

@smillst smillst merged commit 18b9ec2 into typetools:master Oct 2, 2023
29 checks passed
@smillst smillst deleted the no-crash-jep440 branch October 2, 2023 15:01
wmdietl pushed a commit to eisop/checker-framework that referenced this pull request Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants