-
Notifications
You must be signed in to change notification settings - Fork 27
Mismatched checker-qual artifact example
#1318
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
base: master
Are you sure you want to change the base?
Conversation
|
This is for #1243 subtask. |
wmdietl
left a comment
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.
Thanks for starting this!
Please add #1243 to the changelog.
To fix the misc failure, follow the steps from the error message:
+ git diff --exit-code docs/manual/contributors.tex
diff --git a/docs/manual/contributors.tex b/docs/manual/contributors.tex
index 8852dac7f..579eabdc2 100644
--- a/docs/manual/contributors.tex
+++ b/docs/manual/contributors.tex
@@ -1,6 +1,7 @@
Abraham Lin,
Adian Qian,
Aditya Singh,
+Ahnaf Shahriar,
Akash Srivastava,
Alex Cook,
Alex Liu,
+ set +x
docs/manual/contributors.tex is not up to date.
If the above suggestion is appropriate, run: make -C docs/manual contributors.tex
If the suggestion contains a username rather than a human name, then do all the following:
* Update your git configuration by running: git config --global user.name "YOURFULLNAME"
* Add your name to your GitHub account profile at https://github.com/settings/profile
* Make a pull request to add your GitHub ID to
https://github.com/eisop-plume-lib/git-scripts/blob/master/git-authors.sed
and remake contributors.tex after that pull request is merged.
Co-authored-by: Werner Dietl <wdietl@gmail.com>
…ualifiers instead of dependencies
checker-qual artifact example
wmdietl
left a comment
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.
Thanks for the extra test!
| docs/examples/errorprone/.gradle/ | ||
| docs/examples/errorprone/Out.txt | ||
| docs/examples/nullaway/.gradle/ | ||
| docs/examples/Wrong-Checker-Qual/Out.txt |
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.
| docs/examples/Wrong-Checker-Qual/Out.txt | |
| docs/examples/mismatched-checker-qual/Out.txt |
| $(MAKE) -C BazelExample clean | ||
| $(MAKE) -C nullaway clean | ||
| $(MAKE) -C jspecify clean | ||
| $(MAKE) -C mismatched-checker-qual clean |
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.
| $(MAKE) -C mismatched-checker-qual clean | |
| $(MAKE) -C mismatched-checker-qual clean |
| 'org.checkerframework.checker.nullness.NullnessChecker', | ||
| ] | ||
| extraJavacArgs = ['-Aversion'] | ||
| } No newline at end of file |
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.
| } | |
| } |
|
|
||
| .PHONY: all clean | ||
|
|
||
| ifeq ($(shell test $(JAVA_VER) -lt 17; echo $$?),0) |
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.
This test isn't using errorprone, so this can be simplified.
| else | ||
| all: | ||
| - ../../../gradlew build > Out.txt 2>&1 | ||
| # Check for crash due to mismatched Checker Qualifiers |
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.
Add a TODO, here or somewhere else, that explains that we would want more graceful behavior.
|
|
||
| ext { | ||
| versions = [ | ||
| eisopVersion: '3.49.3-eisop1', |
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.
| eisopVersion: '3.49.3-eisop1', | |
| eisopVersion: '3.49.3-eisop1', | |
| typetoolsVersion: '3.49.1', |
| compileOnly "org.checkerframework:checker-qual:3.49.1" | ||
| testCompileOnly "org.checkerframework:checker-qual:3.49.1" |
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.
| compileOnly "org.checkerframework:checker-qual:3.49.1" | |
| testCompileOnly "org.checkerframework:checker-qual:3.49.1" | |
| compileOnly "org.checkerframework:checker-qual:${versions.typetoolsVersion}" | |
| testCompileOnly "org.checkerframework:checker-qual:${versions.typetoolsVersion}" |
| apply plugin: 'org.checkerframework' | ||
|
|
||
| dependencies { | ||
| // Without the same checker qualifiers, Nullness Checker should gracefully issue warnings |
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.
Move this to the beginning of the file, where it is currently not clear what the intended behavior is.
|
|
||
| dependencies { | ||
| // Without the same checker qualifiers, Nullness Checker should gracefully issue warnings | ||
| // Use Typetools checker-qual (original) for qualifiers |
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.
| // Use Typetools checker-qual (original) for qualifiers | |
| // Mismatch between `checker-qual` and `checker` artifacts. |
|
|
||
| public class Demo { | ||
| void demo(Set<Short> s, short i) { | ||
| s.remove(i - 1); // Error Prone error |
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.
This test doesn't use errorprone, so we can simplify this. Keep just a Nullness Checker example, for which we can test once the "graceful" behavior is implemented.
#1107 creating an example to recreate the crash. Copied from ErrorProne example. Using for test validation of the subpackage graceful handling in the case of a mismatch.
Fixes #1243