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/21 01:47:00 UTC
[jira] [Updated] (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 updated GROOVY-11255:
-------------------------------
Description:
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.
was:Currently a cast exception is thrown in that case
> 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
> Priority: Major
>
> 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)