Commit 708e03c
committed
fix: bump Groovy to 5.0.5 with GROOVY-11907 workaround
Groovy 5.0.4+ bundles ASM 9.9.1 which rejects the invalid bytecode
generated by TraitReceiverTransformer for @CompileStatic traits with
static fields when method-level DYNAMIC_RESOLUTION is present
(GROOVY-11907, a regression from GROOVY-11817).
The only affected trait in grails-geb testFixtures is ContainerSupport
(static fields: container, downloadSupport). Switch it from
@CompileStatic to @CompileDynamic so its helper class compiles via
the dynamic code path, which generates valid bytecode. ContainerGebSpec
retains @CompileStatic - its delegate stubs are simple forwarding calls
unaffected by the bug.
This unblocks the Groovy 5.0.3 -> 5.0.5 upgrade. Revert to
@CompileStatic once the Groovy fix (apache/groovy#2443) ships.
Assisted-by: Claude Code <Claude@Claude.ai>1 parent 7896ef8 commit 708e03c
2 files changed
Lines changed: 7 additions & 3 deletions
File tree
- grails-geb/src/testFixtures/groovy/grails/plugin/geb/support
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
0 commit comments