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 "Michael Dürig (JIRA)" <ji...@apache.org> on 2014/11/10 15:05:34 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 ]

Michael Dürig updated OAK-1681:
-------------------------------
    Fix Version/s: 1.0.9

> 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, 1.0.9
>
>
> {{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)