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

ObjectManufacturer fails to produce instances of pojos with non-empty c-tors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Neutral
    • None
    • None
    • None
    • None

    Description

      Despite the presence of an empty default c-tor in a simple pojo class, if there's a sort of an all-arg c-tor which takes e.g. string args - ObjectManufacturer fails to resolve a suitable c-tor and eventually fails to produce an instance.

      It looks like that happens due to underlying ParameterResolver functionality which eventually treats mere strings as pojos and tries to manufacture those in a similar fashion (tries to pick a String c-tor out of many available ones and eventually fails when it reaches a c-tor which takes a byte array and fails on it).

      I believe we at least should not fail in such a case.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD