[ 
https://issues.apache.org/jira/browse/GROOVY-11255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799553#comment-17799553
 ] 

ASF GitHub Bot commented on GROOVY-11255:
-----------------------------------------

paulk-asert merged PR #2017:
URL: https://github.com/apache/groovy/pull/2017




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