Skip to content

Upgrade test sources to Java 25#1591

Merged
velo merged 15 commits intomasterfrom
upgrade-test-sources-java25
Feb 20, 2026
Merged

Upgrade test sources to Java 25#1591
velo merged 15 commits intomasterfrom
upgrade-test-sources-java25

Conversation

@velo
Copy link
Member

@velo velo commented Feb 12, 2026

Summary

  • Upgrade test compilation target from Java 21 to Java 25
  • Apply OpenRewrite UpgradeToJava25 recipe to modernize test sources (instanceof pattern matching, @Serial annotation, unnamed variables, etc.)
  • Apply OpenRewrite UpgradeToJava17 recipe improvements to main sources (instanceof pattern matching)
  • Fix incorrect OpenRewrite migration of @Test(expected=...) to AssertJ in NullExpressionTest and EnumConversionTest
  • Add .sdkmanrc for consistent Java 25 toolchain selection

Test plan

  • ./mvnw -Pdev -Dtoolchain.skip=true verify passes with Java 25
  • CI pipeline passes

🤖 Generated with Claude Code

@velo velo force-pushed the upgrade-test-sources-java25 branch 2 times, most recently from edab67c to 9407f34 Compare February 12, 2026 11:51
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
@velo velo force-pushed the upgrade-test-sources-java25 branch from 9407f34 to 1a67bd9 Compare February 12, 2026 12:09
velo added 7 commits February 12, 2026 09:32
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
@velo velo force-pushed the upgrade-test-sources-java25 branch 3 times, most recently from 10a1a80 to fefdfb7 Compare February 20, 2026 16:39
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
@velo velo force-pushed the upgrade-test-sources-java25 branch from fefdfb7 to 8ac4e8c Compare February 20, 2026 17:55
velo added 6 commits February 20, 2026 15:30
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
…ions

Signed-off-by: Marvin Froeder <velo.br@gmail.com>
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
…named variables in core tests

Signed-off-by: Marvin Froeder <velo.br@gmail.com>
Signed-off-by: Marvin Froeder <velo.br@gmail.com>
@velo velo merged commit eaa9fa9 into master Feb 20, 2026
4 checks passed
@velo velo deleted the upgrade-test-sources-java25 branch February 20, 2026 23:52
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