Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-828

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • core-1.5.0
    • core-1.6.0
    • Core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: