-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
3.4.x incompatible change: error-prone is stricter #11769
Comments
Cc @cushon . Yeah, that is totally expected. @laszlocsomor Have you checked the release notes, link, quoting:
Having said that, I have uploaded this incompatible change PR to avoid that breakage you are seeing. You can fix your broken code (and be happy that Bazel detected it for you) Or as the last option, we could consider to revert the Error Prone upgrade again, |
@davido , thanks for adding context. I missed the note, but I didn't anticipate a breaking minor release either. |
Sorry for the inconvenience, Laszlo. Previously, we used an old snapshot version of Error Prone that was not compatible with newer Java versions, but the community wanted to start adding support for Java 14. So they went through weeks of preparing this in little steps, waiting for us to review and merge it, do a JavaTools release, add that into Bazel in time for Bazel 3.4.0 so that they have a stable release upon which they can build the Java 14 support. We discovered that the new ErrorProne version broke a few downstream projects due to stricter checks, but we fixed the downstream projects with simple commits. We had a commit prepared that would have turned these specific errors into warnings, but decided to not merge it, because downstream was green by the time we needed to make the cut. We missed that the If you run into this issue, you have four options:
|
@meisterT , thanks for the details! |
Given the above option do we really need Bazel users could also miss to try the above option.
What I am trying to say: can we define the Having said that, we do have this @brandjon comment: #2713 (comment), quoting:
|
There is one more workaround, that should be mentioned for completeness, to specify INSECURE_CIPHER_FACTORY = [
"src/org/eclipse/jgit/transport/InsecureCipherFactory.java",
]
java_library(
name = "insecure_cipher_factory",
srcs = INSECURE_CIPHER_FACTORY,
javacopts = ["-Xep:InsecureCryptoUsage:OFF"],
) |
I am closing this issue since we provided the workarounds above. |
Description of the problem / feature request:
Error-prone is stricter with Bazel 3.4.x than Bazel 3.3.x.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Then:
Downgrading to 3.3.0 fixes it:
What operating system are you running Bazel on?
Ubuntu 20.04
What's the output of
bazel info release
?See above.
The text was updated successfully, but these errors were encountered: