Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-11255

DGM#flatten flattens nested structures including arrays but not primitive arrays

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0-alpha-5
    • None
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              paulk Paul King
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: