Skip to content

Allow Building with Java 25 and Use javac -release#7971

Open
Pandrex247 wants to merge 9 commits intopayara:mainfrom
Pandrex247:Allow-Java25-Builds
Open

Allow Building with Java 25 and Use javac -release#7971
Pandrex247 wants to merge 9 commits intopayara:mainfrom
Pandrex247:Allow-Java25-Builds

Conversation

@Pandrex247
Copy link
Member

Description

Allows you to build the server with Java 25.

Also switches us over to using the release option of javac instead of -source and -target, as it's more in line with what we want to enforce (that even if you build with Java 25 or higher that the end runtime should be compatible with Java 21). This included cleaning up various redundant compiler configurations.

Important Info

Blockers

None

Testing

New tests

None

Testing Performed

Built the server with Java 25, allowing unit tests to run - all good.
Started the server and loaded the admin console using java 25 - all good.
Switched over to Java 21, started the server and loaded the admin console (without rebuilding) - all good.

Testing Environment

Windows 11, Zulu JDK 25.0.2 and 21.0.10

Documentation

N/A

Notes for Reviewers

None

Credit to luiseufrasio

Annotation processing must be explicitly enabled.
Without this, processors declared as regular dependencies (not in
annotationProcessorPaths) are silently skipped, causing missing
generated resources (e.g. LogMessages.properties) at runtime.
This is probably the "safer" and "more correct" option for what we're going for (enforcing compatibility with Java 21 regardless of the compiling Java version).
Leaves some of the quicklook ones alone as they're not inheriting from the parent - will tackle them separately
We don't care which thread ID it's using here - it's not pertinent to any of the tests
It apparently doesn't run on Thread 1 for Java 25 ¯\_(ツ)_/¯
Signed-off-by: Andrew Pielage <pandrex247@hotmail.com>
@Pandrex247 Pandrex247 marked this pull request as ready for review February 27, 2026 11:17
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