You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2014/06/30 23:43:24 UTC

[jira] [Created] (ISIS-828) Wrapping an already wrapped object should honour the mode if different.

Dan Haywood created ISIS-828:
--------------------------------

             Summary: Wrapping an already wrapped object should honour the mode if different.
                 Key: ISIS-828
                 URL: https://issues.apache.org/jira/browse/ISIS-828
             Project: Isis
          Issue Type: Bug
          Components: Core
    Affects Versions: core-1.5.0
            Reporter: Dan Haywood
            Assignee: Dan Haywood
            Priority: Minor
             Fix For: core-1.6.0


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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)