Skip to content

Migrate project to Java 25#89

Draft
patrick-vuong with Copilot wants to merge 2 commits into
mainfrom
copilot/migrate-to-java-25-5513d082-ad7a-4a1d-a00c-1e17d0b1d1f2
Draft

Migrate project to Java 25#89
patrick-vuong with Copilot wants to merge 2 commits into
mainfrom
copilot/migrate-to-java-25-5513d082-ad7a-4a1d-a00c-1e17d0b1d1f2

Conversation

Copilot AI commented May 26, 2026

Copy link
Copy Markdown
Contributor

Migrates the project from Java 11 to Java 25 using the org.openrewrite.java.migrate.UpgradeToJava25 OpenRewrite recipe.

Build configuration

  • maven.compiler.release: 1125 (removed redundant source/target properties)
  • maven-compiler-plugin: 3.11.03.15.0
  • maven-surefire-plugin / maven-failsafe-plugin: 3.2.23.5.5
  • Added --add-opens JVM args required for Java 25 module encapsulation

CI

  • JDK version: 1125 (Temurin)

Source — Java 25 language features applied

Feature JEP Since
Instance void main() entry point JEP 477 Java 23
Unnamed catch variable _ JEP 456 Java 22
Pattern matching instanceof JEP 394 Java 16
Switch expressions JEP 361 Java 14
// Before
} catch (IllegalArgumentException e) {
    throw new WebApplicationException("Invalid house: " + house, ...);
}
String description;
switch (house) {
    case GRYFFINDOR: description = "..."; break;
    ...
}

// After
} catch (IllegalArgumentException _) {
    throw new WebApplicationException("Invalid house: " + house, ...);
}
return switch (house) {
    case GRYFFINDOR -> "...";
    ...
};

This change was produced with Moderne CLI and Moderne Agent Tools (MCP). MCP was unavailable for part of this work; Moderne CLI fallback was used.

Copilot AI linked an issue May 26, 2026 that may be closed by this pull request
Co-authored-by: patrick-vuong <107423518+patrick-vuong@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate project to Java 25 Migrate project to Java 25 May 26, 2026
Copilot AI requested a review from patrick-vuong May 26, 2026 16:02
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