Skip to content
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

First pass of J22 support #1819

Merged
merged 16 commits into from
Apr 15, 2024
Merged

First pass of J22 support #1819

merged 16 commits into from
Apr 15, 2024

Conversation

jtduffy
Copy link
Contributor

@jtduffy jtduffy commented Mar 26, 2024

Overview

  • Add support for Java 22
  • Refactors the Jacoco task configuration so it can be included in only those modules where it's used

Resolves #1805

@codecov-commenter
Copy link

codecov-commenter commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.79%. Comparing base (a977065) to head (6eaaa30).
Report is 16 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1819      +/-   ##
============================================
- Coverage     70.89%   70.79%   -0.10%     
+ Complexity     9966     9855     -111     
============================================
  Files           828      821       -7     
  Lines         39957    39693     -264     
  Branches       6053     6049       -4     
============================================
- Hits          28326    28102     -224     
+ Misses         8899     8867      -32     
+ Partials       2732     2724       -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jtduffy jtduffy marked this pull request as ready for review April 1, 2024 16:13
@jtduffy jtduffy requested a review from a team April 1, 2024 16:13
@@ -6,6 +6,7 @@ plugins {
}

apply from: '../gradle/script/spotbugs-config.gradle'
apply from: '../gradle/script/jacoco.gradle'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We apply the new jacooc.gradle script in those modules that we actively want code coverage metrics on.

@@ -22,6 +22,10 @@ verifyInstrumentation {
fails('org.mongodb:mongo-java-driver:[0.9.1,3.1.0-rc0)')
}

test {
systemProperty "jdk.util.zip.disableZip64ExtraFieldValidation", true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Java 22 introduced more robust zip file verification, which was failing on this test (and two others). It seems related to how some of the embedded database artifacts were compressed. This setting disables that extra validation.

@jtduffy jtduffy changed the title DRAFT First pass of J22 support First pass of J22 support Apr 2, 2024
@jtduffy jtduffy merged commit e758975 into main Apr 15, 2024
194 of 195 checks passed
@jtduffy jtduffy deleted the java-22 branch April 15, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add support for Java 22
3 participants