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

Map2Bean ignores the "class" property for maps

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 6.2.19
    • 6.2.18
    • node2bean
    • Yes
    • DevX 10
    • 3

    Description

      Creating an object from Magnolia's configuration calls different mechanisms depending on the way of instantiating it. Performing a manual instantiation calls Map2Bean while Magnolia handles it with Node2Bean.

      However, it seems like Map2Bean is ignoring theĀ class property when converting the configuration structure to their respective beans.

      Bean created by Magnolia automatically:

      Bean created via code:

      Here we can see that the map is taking the class property as another value instead of assigning such value to the map type itself.

      Attached is a simple filter class to reproduce the issue, along two configuration files that help reproduce it as well.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              jsimak Jaroslav Simak
              rgaona Roberto Gaona
              DeveloperX
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 1d
                    1d