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/04/06 14:55:14 UTC

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

Michael Dürig created OAK-1681:
----------------------------------

             Summary: 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
             Fix For: 1.1


{{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.2#6252)