[jboss-cvs] JBossCache/src/org/jboss/cache ...
Manik Surtani
manik at jboss.org
Wed Mar 7 09:21:35 EST 2007
User: msurtani
Date: 07/03/07 09:21:35
Modified: src/org/jboss/cache Tag: Branch_JBossCache_1_4_0
TreeCache.java
Log:
Added a warning msg
Revision Changes Path
No revision
No revision
1.195.2.55 +5 -1 JBossCache/src/org/jboss/cache/Attic/TreeCache.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: TreeCache.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/Attic/TreeCache.java,v
retrieving revision 1.195.2.54
retrieving revision 1.195.2.55
diff -u -b -r1.195.2.54 -r1.195.2.55
--- TreeCache.java 7 Mar 2007 14:17:34 -0000 1.195.2.54
+++ TreeCache.java 7 Mar 2007 14:21:35 -0000 1.195.2.55
@@ -99,7 +99,7 @@
* @author <a href="mailto:manik at jboss.org">Manik Surtani (manik at jboss.org)</a>
* @author Brian Stansberry
* @author Daniel Huang (dhuang at jboss.org)
- * @version $Id: TreeCache.java,v 1.195.2.54 2007/03/07 14:17:34 msurtani Exp $
+ * @version $Id: TreeCache.java,v 1.195.2.55 2007/03/07 14:21:35 msurtani Exp $
* <p/>
* @see <a href="http://labs.jboss.com/portal/jbosscache/docs">JBossCache doc</a>
*/
@@ -4771,6 +4771,10 @@
TreeNode parent_node;
MethodCall undo_op = null;
+ // Users should never see this exception - it is there to trap dev bugs where remove or evict calls on the root node
+ // make it all the way down here. They should be dealt with at a higher level, such as remove() or evict().
+ if (fqn.isRoot()) throw new RuntimeException("Attempting to remove or evict the root node. This is not supported in TreeCache._remove() and should be dealt with at a higher level.");
+
if (log.isTraceEnabled())
log.trace(new StringBuffer("_remove(").append(tx).append(", \"").append(fqn).append("\")"));
More information about the jboss-cvs-commits
mailing list