Repository navigation
refactor: convert grails-web-common to Groovy - #16596
Open
borinquenkid wants to merge 8 commits into
Open
borinquenkid wants to merge 8 commits into
borinquenkid wants to merge 8 commits into
Conversation
Converts the Java sources of grails-web-common to Groovy. Part of the per-project split requested by the maintainers on #16351; end state taken from the 9.0.x-java-to-groovy branch (origin/9.0.x..e55fd9e). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The converted HiddenHttpMethod declared its String constants without 'public', which makes them Groovy properties with a private field; the Java sources of grails-controllers still read them directly. Declare them public static final as in the Java original. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
borinquenkid
requested review from
jamesfredley and
jdaugherty
and
a balanced review from Copilot
October 11, 2026 01:28
jdaugherty
added this pull request to stack #16598
October 11, 2026 07:55
…roovy-grails-web-common
…roovy-grails-web-common
…roovy-grails-web-common
…roovy-grails-web-common
…a-to-groovy-grails-web-common
…va-to-groovy-grails-web-common
🚨 TestLens detected 1 failed test 🚨Test SummaryTip Inspect all details with the TestLens CLI: CI / Build Grails-Core (Windows JDK 25 shard 2) > :grails-startup-progress:test
🏷️ Commit: e7a3217 Test FailuresStartupProgressSpec > tells a watching page why the start failed while #stage, then releases the port > tells a watching page why the start failed while running a hook, then releases the port (:grails-startup-progress:test in CI / Build Grails-Core (Windows JDK 25 shard 2))Rerun ControlsSelect tests to mute in this pull request:
Reuse successful test results:
Click the checkbox to trigger a rerun:
Learn more about TestLens at testlens.app/docs. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Converts the remaining Java sources of
grails-web-commonto Groovy: 56.javafiles removed, 59.groovyfiles added (72 files changed, 4791 insertions(+), 4556 deletions(-)).Why
The maintainers asked on #16351 for the Java-to-Groovy migration to land one Gradle project at a time as a stack of PRs, bottom-up in dependency order. #16572 did
grails-data-hibernate7; this PR is 18 of 30 in the next stack (base:refactor/java-to-groovy-grails-gsp-core). The end state of every file is taken from the9.0.x-java-to-groovybranch, which already carries the regression fixes found by CI.Commits:
Changed outside the converted sources
M gradle/rat-root-config.gradleJava-facing API sweep
Every deleted
.javawas compared with its Groovy twin viajavap -v -protected(class declaration, public/protected fields, constructors, methods incl. modifiers/throws/generics, interface default methods, nested class modifiers, and the annotations callers see). Result:grails-web-common: 56 deleted .java, 0 differences requiring actionSee also the notes below. Remaining informational entries (widened visibility, e.g. Groovy property accessors): 36.
Verification
classesandtestClasses(plusast/cli/testFixturessource sets where present) of the converted project(s) and of their direct dependents compile: ['grails-async', 'grails-converters', 'grails-gsp', 'grails-gsp-core', 'grails-layout', 'grails-mail', 'grails-openapi', 'grails-sitemesh3', 'grails-spring-security', 'grails-views-gson', 'grails-web-boot', 'grails-web-core', 'grails-web-databinding', 'grails-web-gsp', 'grails-web-jsp', 'grails-web-mvc', 'grails-web-taglib', 'grails-web-url-mappings']codeStyle,ratand a whole-repobuild -PskipTestsare run once on the tip of the stack.Notes
MIN_VALUE/MAX_VALUE/next()/previous(), property accessors appear for formerly package-private members, nested static classes with implicit constructors become public (they wereprotected), and generic type parameters that Groovy erases in constructors/methods (descriptors identical).static finalwithoutpubliccreates a property;==callsequals(); Closure/SAM coercions;@CompileStaticwith nested classes. All CI regression fixes found on the umbrella branch are included in the end state.🤖 Generated with Claude Code