Skip to content

Update language level to JDK 17#3967

Merged
ScottDugas merged 8 commits intoFoundationDB:mainfrom
alecgrieser:java-17-language-level
Apr 20, 2026
Merged

Update language level to JDK 17#3967
ScottDugas merged 8 commits intoFoundationDB:mainfrom
alecgrieser:java-17-language-level

Conversation

@alecgrieser
Copy link
Copy Markdown
Collaborator

@alecgrieser alecgrieser commented Feb 24, 2026

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.

We also bump the record-layer-version to 4.11.0.0.

This resolves #2360.

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.
@alecgrieser alecgrieser added breaking change Changes that are not backwards compatible build improvement Improvement to the build system labels Feb 24, 2026
Comment thread .idea/misc.xml
Copy link
Copy Markdown
Contributor

@RobertBrunel RobertBrunel left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@normen662 normen662 marked this pull request as ready for review April 20, 2026 14:37
Copy link
Copy Markdown
Collaborator

@arnaud-lacurie arnaud-lacurie left a comment

Choose a reason for hiding this comment

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

Ok with bumping to 17 👍
Adopters who are not on 17 yet will need to stay on 4.10.X

@ScottDugas ScottDugas merged commit fffb433 into FoundationDB:main Apr 20, 2026
13 checks passed
@alecgrieser alecgrieser deleted the java-17-language-level branch April 22, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Changes that are not backwards compatible build improvement Improvement to the build system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update to JDK 17

6 participants