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

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

XMLWordPrintable

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved: