Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-828

Wrapping an already wrapped object should honour the mode if different.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: core-1.5.0
    • Fix Version/s: core-1.6.0
    • Component/s: Isis Core
    • Labels:
      None

      Description

      WrapperFactory#wrap(object, mode) as currently implemented will always just return the object passed in if already wrapped.

      This used to be the correct behaviour, prior to the introduction of modes.

      Now, however, if the domain object is already wrapped but with a wrapper that has different mode than that requested, it should be re-wrapped.

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Daniel Keir Haywood
              Reporter:
              danhaywood Daniel Keir Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: