Skip to content

Migrate to Java 25#63

Draft
MBoegers with Copilot wants to merge 2 commits into
mainfrom
copilot/migrate-to-java-25-dc5c2ca0-2fab-4b7c-aea6-02a9c7aefad8
Draft

Migrate to Java 25#63
MBoegers with Copilot wants to merge 2 commits into
mainfrom
copilot/migrate-to-java-25-dc5c2ca0-2fab-4b7c-aea6-02a9c7aefad8

Conversation

Copilot AI commented May 12, 2026

Copy link
Copy Markdown
Contributor

Upgrades the project from Java 11 to Java 25, modernising both the build configuration and source code to use current Java features.

Build

  • maven.compiler.release25; removed redundant maven.compiler.source
  • maven-compiler-plugin 3.11.0 → 3.15.0
  • maven-surefire-plugin / maven-failsafe-plugin 3.2.2 → 3.5.5
  • Added --add-opens JVM args for Java 25 module system compatibility (Mockito/byte-buddy)
  • CI: JDK 11 → 25

Source modernisation

  • Instance main method (finalized in Java 25):
    // before
    public static void main(String[] args) throws Exception { ... }
    // after
    void main(String[] args) throws Exception { ... }
  • Unnamed catch variables (_) for unused exceptions
  • Pattern-matching instanceof replacing explicit casts
  • Switch expressions replacing traditional switch statements
  • "%02x".formatted(b) replacing String.format("%02x", b)

Copilot AI linked an issue May 12, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Migrate project to Java 25 Migrate to Java 25 May 12, 2026
Copilot AI requested a review from MBoegers May 12, 2026 08:28
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.

Migrate to Java 25

2 participants