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] [Commented] (OAK-421) NodeBuilder.reset might lead to inconsistent builder
Date Fri, 02 Nov 2012 23:22:13 GMT

    [ https://issues.apache.org/jira/browse/OAK-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489832#comment-13489832
] 

Michael Dürig commented on OAK-421:
-----------------------------------

Applied this change in revision 1405213. Please review ;-)
                
> NodeBuilder.reset might lead to inconsistent builder
> ----------------------------------------------------
>
>                 Key: OAK-421
>                 URL: https://issues.apache.org/jira/browse/OAK-421
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Michael Dürig
>
> The following test fails:
> {code}
> NodeBuilder root = new MemoryNodeBuilder(BASE);
> NodeBuilder x = root.child("x");
> NodeBuilder y = x.child("y");
> root.reset(BASE);
> assertTrue(root.hasChildNode("x"));
> assertFalse(x.hasChildNode("y"));  // fails
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message