Skip to content

be: run on Java 17 too, the oldest LTS that Jackson 3 and every supported framework start on - #81

Merged
landsman merged 1 commit into
mainfrom
be/java-17
Nov 20, 2026
Merged

landsman merged 1 commit into
mainfrom
be/java-17

Conversation

@landsman

Copy link
Copy Markdown
Owner

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() and HttpClient.close(). close() is called only when the client is AutoCloseable, which HttpClient is from 21. On 17 it has no close() 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 build passes with the tests on JDK 17, 21 and 25; CI's matrix is now those three.

…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.
@landsman
landsman merged commit f1e45c4 into main Nov 20, 2026
7 checks passed
@landsman
landsman deleted the be/java-17 branch November 20, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant