Update language level to JDK 17#3967
Merged
ScottDugas merged 8 commits intoFoundationDB:mainfrom Apr 20, 2026
Merged
Conversation
This updates the required project language level from 11 to 17, which is the next LTS version. This is a breaking change, in that downstream projects will need to update their language level to match. As a benefit, though, we get to use JDK 17 features that we've previously refrained from using for backwards compatibility reasons. To showcase this, I've updated some of our test files to use text blocks to more naturally specify the schema template, and I've updated one callsite to use `Stream::toList` instead of `Collectors::toList`. This resolves FoundationDB#2360.
normen662
reviewed
Feb 26, 2026
arnaud-lacurie
approved these changes
Apr 20, 2026
Collaborator
arnaud-lacurie
left a comment
There was a problem hiding this comment.
Ok with bumping to 17 👍
Adopters who are not on 17 yet will need to stay on 4.10.X
normen662
approved these changes
Apr 20, 2026
MMcM
approved these changes
Apr 20, 2026
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.
This updates the required project language level from 11 to 17, which is the next LTS version. This is a breaking change, in that downstream projects will need to update their language level to match. As a benefit, though, we get to use JDK 17 features that we've previously refrained from using for backwards compatibility reasons. To showcase this, I've updated some of our test files to use text blocks to more naturally specify the schema template, and I've updated one callsite to use
Stream::toListinstead ofCollectors::toList.We also bump the record-layer-version to 4.11.0.0.
This resolves #2360.