-
Notifications
You must be signed in to change notification settings - Fork 357
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
Conversation
…h-clean-wpiplumelib into jdk21-test
checker/src/main/java/org/checkerframework/checker/fenum/FenumAnnotatedTypeFactory.java
Outdated
Show resolved
Hide resolved
checker/src/main/java/org/checkerframework/checker/interning/InterningVisitor.java
Outdated
Show resolved
Hide resolved
AnnotatedDeclaredType declaredType = (AnnotatedDeclaredType) varType; | ||
for (AnnotatedTypeMirror atm : declaredType.getTypeArguments()) { | ||
if (atm.hasPrimaryAnnotation(Unique.class)) { | ||
} else if (tree.getType() != null) { |
There was a problem hiding this comment.
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.
…k into no-crash-jep440
This reverts commit bc9a755.
There was a problem hiding this 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.
dataflow/src/main/java/org/checkerframework/dataflow/cfg/builder/CFGTranslationPhaseOne.java
Outdated
Show resolved
Hide resolved
javacutil/src/main/java/org/checkerframework/javacutil/TreeUtils.java
Outdated
Show resolved
Hide resolved
javacutil/src/main/java/org/checkerframework/javacutil/TreeUtils.java
Outdated
Show resolved
Hide resolved
…k into no-crash-jep440
This reverts commit 285bd8c.
@mernst Could you please re-review? I had to make more changes because I didn't realize that |
If this change is ready to go, it'd be helpful to NullAway if it gets included in the 3.39.0 release. |
Co-authored-by: Michael Ernst <[email protected]>
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.