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 15:44:14 UTC
[jira] [Assigned] (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 reassigned OAK-1681:
----------------------------------
Assignee: Michael Dürig
> 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
>
>
> {{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)