Commit 50cbb9f
[fix](regression) fix MissingPropertyException in test_query_stmt (#62455)
## Problem
`assertEquals(obj.data.data.size, 3)` uses `.size` without parentheses
on a JSON-parsed `ArrayList<ArrayList<Integer>>`. In newer Groovy
versions this triggers GPath spreading, mapping `.size` across each row
element (which are `Integer`s). Since `Integer` has no `size` property:
```
groovy.lang.MissingPropertyException: No such property: size for class: java.lang.Integer
```
## Fix
```groovy
// Before
assertEquals(obj.data.data.size, 3)
// After
assertEquals(obj.data.data.size(), 3)
```
Root cause: case issue — same GPath `.size` vs `.size()` pattern as
#62454.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e984a38 commit 50cbb9f
File tree
1 file changed
+1
-1
lines changed- regression-test/suites/http_rest_api/post
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments