[
https://issues.apache.org/jira/browse/ISIS-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14048218#comment-14048218
]
ASF subversion and git services commented on ISIS-828:
------------------------------------------------------
Commit 7a6a608d7ab526a17659e7f93dddcb3ebc28ab8e in isis's branch
refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=7a6a608 ]
ISIS-827, ISIS-828: WrappingObject, honour requested mode if wrap already
wrapped object.
> 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)