jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1421932 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilder.java
Date Fri, 14 Dec 2012 15:29:54 GMT
Author: mduerig
Date: Fri Dec 14 15:29:53 2012
New Revision: 1421932

URL: http://svn.apache.org/viewvc?rev=1421932&view=rev
Log:
OAK-520: IllegalStateException in MemoryNodeBuilder
better error message

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilder.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilder.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilder.java?rev=1421932&r1=1421931&r2=1421932&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilder.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryNodeBuilder.java
Fri Dec 14 15:29:53 2012
@@ -202,7 +202,7 @@ public class MemoryNodeBuilder implement
     private NodeState read() {
         if (revision != root.revision) {
             assert(!isRoot()); // root never gets here since revision == root.revision
-            checkState(!parent.removed(name));
+            checkState(!parent.removed(name), "This node has already been removed");
             parent.read();
 
             // The builder could have been reset, need to re-get base state



Mime
View raw message