You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2023/12/22 02:25:00 UTC

[jira] [Resolved] (GROOVY-11255) DGM#flatten flattens nested structures including arrays but not primitive arrays

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

Paul King resolved GROOVY-11255.
--------------------------------
    Fix Version/s: 5.0.0-alpha-5
       Resolution: Fixed

> DGM#flatten flattens nested structures including arrays but not primitive arrays
> --------------------------------------------------------------------------------
>
>                 Key: GROOVY-11255
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11255
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Paul King
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 5.0.0-alpha-5
>
>
> Currently a cast exception is thrown in that case.
> Note this only applies in Groovy 5. Groovy 4 converted primitive arrays into lists before flattening them. Earlier alphas of Groovy 5 avoided creating such lists but we inadvertently didn't cater for primitives during array processing which is where the cast exception crept in.



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