Repository navigation
be: run on Java 17 too, the oldest LTS that Jackson 3 and every supported framework start on - #81
Merged
Merged
Conversation
…rted framework start on Compiled for release 17 instead of 21. Three Java 21 features had crept into what ships: record patterns, List.getFirst() and HttpClient.close(). close() is now called only where HttpClient is AutoCloseable (21+); on 17 the client stops its threads once unreferenced. The tests that check a closed client refuses calls run on 21 and newer only. The café and peek are applications, never published, and stay on 21. CI tests on 17, 21 and 25.
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.
The jars were release 21, so a Java 17 application could not load them, though Jackson 3, Spring Boot 3 and 4, Quarkus 3, Micronaut 4 and Play 2.9/3.0 all run on 17. They are release 17 now.
Three Java 21 features had to go from what ships: record patterns,
List.getFirst()andHttpClient.close().close()is called only when the client isAutoCloseable, whichHttpClientis from 21. On 17 it has noclose()and stops its threads once nothing references it, so the tests that check a closed client refuses calls run on 21 and newer only. The Javadoc, usage and compatibility docs say so.Java 11 and 8 are not offered: Jackson 3 and every framework module start at 17. The café example and peek are applications, never published, and stay on 21.
make buildpasses with the tests on JDK 17, 21 and 25; CI's matrix is now those three.