Commit 2a5e983
James Fredley
drop Groovy 6 workarounds whose upstream fixes have merged
Re-audited every Groovy 6 workaround in this canary against the latest
Apache Groovy master. Three fixes have merged and are present in the
6.0.0-SNAPSHOT artifact (latest publication: 2026-05-02 11:47:43 UTC,
build #546), so the corresponding workarounds can be removed.
GROOVY-11968 (apache/groovy#2495), merged 2026-05-01 03:40 UTC,
SHA 84f2f37c4f93d6ea44ad8bc76570704c84499c6b
- grails-geb/.../ContainerSupport.groovy: revert @CompileDynamic to
@CompileStatic now that the trait-static-field VerifyError under
indy=false no longer triggers.
GROOVY-11967 (apache/groovy#2493), merged 2026-05-01 09:37 UTC,
SHA 406feaf5082f1741c318f924b520c4c27bfa0754
- DefaultConstraintFactory.groovy: collapse the two explicit
constructors back to a single constructor with a default-valued
List parameter; the @CompileStatic VerifyError on the synthesised
bridge constructor no longer reproduces.
- MappingContextAwareConstraintFactory.groovy: same collapse.
GROOVY-11966 (apache/groovy#2492), merged 2026-05-01 18:58 UTC,
SHA 8dde1c84134ef6fdeecf26b5cbb5183d5aab4dac
- GroovyPageCompiler.groovy: drop the parallelism guard and the
grails.gsp.compiler.parallelism system property; restore the
original Executors.newFixedThreadPool(availableProcessors() * 2)
sizing now that AnnotationNode.isTargetAllowed -> ListHashMap is
thread-safe again.
- AbstractGroovyTemplateCompiler.groovy: same restoration; drop the
grails.views.compiler.parallelism system property.
Verified locally on Java 21 / Groovy 6.0.0-SNAPSHOT build #546:
./gradlew :grails-datamapping-validation:compileGroovy
./gradlew :grails-datamapping-core:compileGroovy
./gradlew :grails-gsp-core:compileGroovy
./gradlew :grails-views-core:compileGroovy
./gradlew :grails-geb:compileTestFixturesGroovy
-> all BUILD SUCCESSFUL
The remaining workarounds (TraitReceiverTransformer static-method
override loss, MetaClassImpl genericGetMethod hijack on GORM entities,
@CompileStatic named-argument render(Map) silent no-op, smart-cast
in 'if (cond && !(x instanceof Y))', VariableScopeVisitor NPE, and
ConfigObject [] mutation) have no upstream fix yet and stay in place.1 parent 367dad7 commit 2a5e983
5 files changed
Lines changed: 7 additions & 146 deletions
File tree
- grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/validation/constraints
- grails-datamapping-validation/src/main/groovy/org/grails/datastore/gorm/validation/constraints/factory
- grails-geb/src/testFixtures/groovy/grails/plugin/geb/support
- grails-gsp/core/src/main/groovy/org/grails/gsp/compiler
- grails-views-core/src/main/groovy/grails/views
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 38 | + | |
43 | 39 | | |
44 | 40 | | |
45 | 41 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 50 | + | |
55 | 51 | | |
56 | 52 | | |
57 | 53 | | |
| |||
Lines changed: 1 addition & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 37 | + | |
58 | 38 | | |
59 | 39 | | |
60 | 40 | | |
| |||
Lines changed: 2 additions & 58 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 112 | + | |
127 | 113 | | |
128 | 114 | | |
129 | 115 | | |
130 | | - | |
| 116 | + | |
131 | 117 | | |
132 | 118 | | |
133 | 119 | | |
| |||
188 | 174 | | |
189 | 175 | | |
190 | 176 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | 177 | | |
234 | 178 | | |
235 | 179 | | |
| |||
Lines changed: 2 additions & 57 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 85 | + | |
100 | 86 | | |
101 | 87 | | |
102 | 88 | | |
103 | | - | |
| 89 | + | |
104 | 90 | | |
105 | 91 | | |
106 | 92 | | |
| |||
157 | 143 | | |
158 | 144 | | |
159 | 145 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | 146 | | |
202 | 147 | | |
203 | 148 | | |
| |||
0 commit comments