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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.5.13, 5.6.8, 5.7.2, 6.0
    • None
    • None
    • None

    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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD