Skip to content

Conversation

@findepi
Copy link
Member

@findepi findepi commented Nov 10, 2025

By targeting Java 11 we can eliminate manual Java version string parsing. The downside is that someone trying to run Trino server with JDK 8, 9 or 10 won't get a nice error message anymore. The situation is unlikely given how ancient these versions are.

By targeting Java 11 we can eliminate manual Java version string
parsing. The downside is that someone trying to run Trino server with
JDK 8, 9 or 10 won't get a nice error message anymore. The situation is
unlikely given how ancient these versions are.
@findepi findepi requested review from electrum and wendigo November 10, 2025 13:51
@cla-bot cla-bot bot added the cla-signed label Nov 10, 2025
if (major == null || major < 22) {
Runtime.Version javaVersion = Runtime.version();
if (javaVersion.feature() < 22) {
System.err.printf("ERROR: Trino requires Java 22+ (found %s)%n", javaVersion);
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated, but this was missed in the last version update

Copy link
Member Author

Choose a reason for hiding this comment

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

we could capture trino-server-core's built-time project.build.targetJdk in a resource, so that we don't have to update the value manually

Copy link
Member Author

Choose a reason for hiding this comment

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

@findepi findepi merged commit 5fa18ec into trinodb:master Nov 12, 2025
46 checks passed
@findepi findepi deleted the findepi/compile-trino-server-main-targeting-java-11-320376 branch November 12, 2025 09:09
@github-actions github-actions bot added this to the 479 milestone Nov 12, 2025
@chenjian2664
Copy link
Contributor

The downside is that someone trying to run Trino server with JDK 8, 9 or 10 won't get a nice error message anymore.

Should this be mentioned in the release notes?

@findepi findepi added the no-release-notes This pull request does not require release notes entry label Nov 16, 2025
@findepi
Copy link
Member Author

findepi commented Nov 16, 2025

No.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed no-release-notes This pull request does not require release notes entry

Development

Successfully merging this pull request may close these issues.

4 participants