-
Notifications
You must be signed in to change notification settings - Fork 737
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
BugPattern: FutureReturnValueIgnored throws #996
Comments
This looks like JDK-8177068. If I disable that Error Prone check:
The build fails with a javac crash:
|
That NullPointerException is what I got prior to errorprone 2.3.0. Documented in #771. The IndexOutOfBoundsException behavior looked quite different, hence the new issue. The difference in behavior may have been caused by other factors, too, like updating to Gradle 4.7 or using a more recent Android Gradle plugin & associated databinding libraries version. |
The root cause is the same javac bug. It allows the compilation to get in to a bad state where some invariants are violated, which crashes Error Prone. |
MOE_MIGRATED_REVID=193603370
I have worked around the problem in the check, and I'll leave #771 open tracking the underlying issue with javac. |
Please answer these questions before submitting your issue. Thanks!
What version of Error Prone are you using?
2.3.0
Does this issue reproduce with the latest release?
Yes
What did you do?
Build this:
https://github.com/bubenheimer/errorpronebug
What did you expect to see?
No errors
What did you see instead?
The text was updated successfully, but these errors were encountered: