You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2026/01/21 20:09:00 UTC

[jira] [Updated] (GROOVY-8551) Java compatibility: support multi-dimensional array initializers

     [ https://issues.apache.org/jira/browse/GROOVY-8551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Milles updated GROOVY-8551:
--------------------------------
    Labels: arrays  (was: )

> Java compatibility: support multi-dimensional array initializers
> ----------------------------------------------------------------
>
>                 Key: GROOVY-8551
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8551
>             Project: Groovy
>          Issue Type: Improvement
>          Components: parser-antlr4
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Minor
>              Labels: arrays
>             Fix For: 5.0.0-alpha-11
>
>
> GROOVY-3791 indicates support for Java-style array initializer is now supported by Parrot Parser.  However, a compact multi-dimensional initializer still fails:
> {code:groovy}
> def strings = new String[][] { { "a", "b", "c" }, { "1", "2", "3" } }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)