Skip to content

test - #15290 - add test for compile static dynamic checking#15294

Closed
jdaugherty wants to merge 1 commit into
7.0.xfrom
issue15290
Closed

test - #15290 - add test for compile static dynamic checking#15294
jdaugherty wants to merge 1 commit into
7.0.xfrom
issue15290

Conversation

@jdaugherty
Copy link
Copy Markdown
Contributor

@jdaugherty
Copy link
Copy Markdown
Contributor Author

Once groovy 4.0.30 is released we can update this pr to confirm it passes

@jdaugherty
Copy link
Copy Markdown
Contributor Author

test for #15290

@jdaugherty
Copy link
Copy Markdown
Contributor Author

Note: the upstream groovy change was not backported to 4.0.30 so this will have to wait until Grails 8 / Groovy 5

@jdaugherty jdaugherty added this to the grails:8.0.0-M1 milestone Jan 17, 2026
@jdaugherty
Copy link
Copy Markdown
Contributor Author

FYI: #14088

jamesfredley pushed a commit that referenced this pull request May 20, 2026
Cherry-picks the `grails-test-examples/compile-static` project from
#15294 (originally targeted at 7.0.x) onto
grails8-groovy5-sb4.

BookService calls Book.findAllByName('Joe') under @GrailsCompileStatic
- the original GROOVY-11817 surface. On Groovy 5.0.6-SNAPSHOT the
service compiles and BookServiceSpec passes without any reflection
workaround:

    BookServiceSpec > test validateBooks method PASSED

Conflict resolution notes:
- Dropped the unrelated app1/grails-app/conf/application.groovy
  whitespace tweak (8.0.x already lacks the leading blank line).
- Re-anchored the settings.gradle insert against 8.0.x's reordered
  Functional Tests include list (compile-static slots in
  alphabetically between cache and database-cleanup).

Assisted-by: opencode:claude-4.7-opus
@jamesfredley
Copy link
Copy Markdown
Contributor

Moved to #15557

jamesfredley added a commit that referenced this pull request May 20, 2026
Brings in from #15557:
- The grails-test-examples/compile-static project (#15294 cherry-pick).
- The 5.0.6-SNAPSHOT -> 5.0.6 pin in dependencies.gradle (conflict
  resolved in favour of this branch's 6.0.0-SNAPSHOT pin, since this
  canary tracks Groovy 6 not Groovy 5).

Assisted-by: opencode:claude-4.7-opus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants