You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Amit Jain (JIRA)" <ji...@apache.org> on 2014/09/30 09:43:02 UTC

[jira] [Updated] (OAK-1681) Clarify contract of NodeBuilder.isReplaced()

     [ https://issues.apache.org/jira/browse/OAK-1681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amit Jain updated OAK-1681:
---------------------------
    Fix Version/s:     (was: 1.1)
                   1.1.0

> Clarify contract of NodeBuilder.isReplaced()
> --------------------------------------------
>
>                 Key: OAK-1681
>                 URL: https://issues.apache.org/jira/browse/OAK-1681
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>             Fix For: 1.1.0
>
>
> {{NodeBuilder.isReplaced}}'s contract needs clarification and its implementation in {{MemoryNodeBuilder}} probably a correction as currently 
> {code}
> NodeBuilder root = base.builder();
> NodeBuilder x = root.getChildNode("x");
> x.setChildNode("new");
> assertFalse(x.isReplaced());
> {code}
> fails. Also similar tests fail or not depending on whether {{base}} is an instance of {{ModifiedNodeState}} or {{MemoryNodeState}}. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)