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

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

XMLWordPrintable

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD