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 2013/02/08 14:13:12 UTC

[jira] [Commented] (OAK-614) AssertionError in MemoryNodeBuilder

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

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

Fix in revision 1443997.

I leave this issue open in case work on OAK-606 and related uncovers more such edge cases. 
                
> AssertionError in MemoryNodeBuilder
> -----------------------------------
>
>                 Key: OAK-614
>                 URL: https://issues.apache.org/jira/browse/OAK-614
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>             Fix For: 0.7
>
>
> {code}
>     NodeBuilder root = ...
>     NodeBuilder child = root.child("new");
>     root.removeNode("new");
>     child.getChildNodeCount();
> {code}
> The last line throws an {{AssertionError}} when no node named "new" existed initially. It throws an {{IllegalStateException}} as expected otherwise. 

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