jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbac <642826...@qq.com>
Subject setPolicy javax.jcr.ItemExistsException? bug???
Date Tue, 23 Oct 2012 00:58:46 GMT
 
aclNode = acNode.getNode(N_POLICY);
            // remove all existing aces
            for (NodeIterator aceNodes = aclNode.getNodes();
aceNodes.hasNext();) {
                NodeImpl aceNode = (NodeImpl) aceNodes.nextNode();
                removeItem(aceNode);
            }
            
            System.out.println(aclNode.getNodes().getSize());  //0
             but  aclNode.getNodeState().getChildNodeEntries().size()  //59 
why not 0???

            why?
             because this problem,  when  add  a node ,its name  is  in
these childNodeEntries  ,so  ItemExistsException,  it's a bug??  



--
View this message in context: http://jackrabbit.510166.n4.nabble.com/setPolicy-javax-jcr-ItemExistsException-bug-tp4656857.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Mime
View raw message