Remove compiling with -Werror to support Java 19#3820
Merged
merlimat merged 1 commit intoapache:masterfrom Feb 27, 2023
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3820 +/- ##
============================================
+ Coverage 44.28% 49.83% +5.54%
- Complexity 4375 4815 +440
============================================
Files 473 473
Lines 40963 40963
Branches 5240 5240
============================================
+ Hits 18141 20413 +2272
+ Misses 20937 18520 -2417
- Partials 1885 2030 +145
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
nicoloboschi
approved these changes
Feb 27, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Building BK with Java 19 fails because there is a deprecation warning and it's being treated as an error.
In a few places, we are using
Thread.getId()which has been deprecated since Java 19. There is now a new replacement:Thread.getThreadId().The problem is that we cannot use the new method (which is only in Java 19+) and the build fails with the deprecated method.
I believe the best solution is to not use
-Werrrorflag in the build.