Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7364

Map2Bean yields an ArrayList regardless of the collection type declared for the property

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5.13, 5.6.8, 5.7.2, 6.0
    • Component/s: None
    • Labels:
      None
    • Epic Link:
    • Sprint:
      Basel 154
    • Story Points:
      1
    • Magnolia Release:
      5.5.13, 5.6.9, 5.7.2, 6.0

      Description

      Map2BeanTransformer#readCollection does not take into account collection type of the property and creates/returns an ArrayList for every case.

      We should try to instantiate the configured type first (there's even a map with default impls, which btw needs to be expanded) and fall back to array list only in case of a failure.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                apchelintcev Aleksandr Pchelintcev
                Reporter:
                apchelintcev Aleksandr Pchelintcev
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: