[ 
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)

Reply via email to