jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Updated] (OAK-1681) Clarify contract of NodeBuilder.isReplaced()
Date Mon, 10 Nov 2014 14:05:34 GMT

     [ 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)

Mime
View raw message