[
https://issues.apache.org/jira/browse/ISIS-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dan Haywood resolved ISIS-828.
------------------------------
Resolution: Fixed
> 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)