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.