[
https://issues.apache.org/jira/browse/GROOVY-11492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152606#comment-18152606
]
ASF GitHub Bot commented on GROOVY-11492:
-----------------------------------------
testlens-app[bot] commented on PR #3054:
URL: https://github.com/apache/groovy/pull/3054#issuecomment-7259440143
## 🚨 TestLens detected 2 failed tests 🚨
### Test Summary
> [!TIP]
> Inspect all details with the [TestLens
CLI](https://testlens.app/docs/features/cli): `testlens pr 3054`
#### [Build and test / lts \(25,
ubuntu-latest\)](https://github.com/apache/groovy/actions/runs/46286455911/job/141420082166?pr=3054)
> :test
| Test | Runs | Flakiness |
|---|---|--:|
| GrabResolverTest > testResolverDefinitionResolvesDependency\(\) | ❌ |
0% 🟢 |
| GrabResolverTest >
testResolverDefinitionResolvesDependencyWithShorthand\(\) | ❌ | 0% 🟢 |
🏷️ Commit: a09cbd0c0e2686b147809a647319c41c8e1dacf6
▶️ Tests: 47006 executed
🟡 Checks: 7/24 completed
### Test Failures
<details><summary><strong>GrabResolverTest >
testResolverDefinitionResolvesDependency()</strong> (:test in <a
href="https://github.com/apache/groovy/actions/runs/46286455911/job/141420082166?pr=3054">Build
and test / lts (25, ubuntu-latest)</a>)</summary>
```
java.lang.AssertionError: Forked JVM for
groovy.grape.GrabResolverTest#testResolverDefinitionResolvesDependency failed:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
failed:
General error during conversion: Error grabbing Grapes
> Java compatibility: array initializers without "new Type[]"
> -----------------------------------------------------------
>
> Key: GROOVY-11492
> URL: https://issues.apache.org/jira/browse/GROOVY-11492
> Project: Groovy
> Issue Type: Improvement
> Components: parser-antlr4
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Major
> Labels: arrays
>
> There are a few cases where bare array initializers are not yet supported:
> # {{int[][] array = \{ \{1,2\}, \{3,4\} \};}}
> # {{@Target(\{ ElementType.FIELD, ElementType.METHOD \})}}
> # {code:groovy}@interface A {
> String[] strings() default {}
> }
> {code}
> These were implemented as part of [1] but the PR was closed. It may be worth
> looking back over what was done and re-implementing one or more of these
> cases. It was noted that {{Closure[] array = \{\};}} is one of the edge
> cases that leads to ambiguity.
> [1] https://github.com/apache/groovy/pull/691
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)