jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r332532 - /incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/version/InternalFrozenNodeImpl.java
Date Fri, 11 Nov 2005 11:57:09 GMT
Author: stefan
Date: Fri Nov 11 03:57:04 2005
New Revision: 332532

URL: http://svn.apache.org/viewcvs?rev=332532&view=rev
Log:
fixed minor issue that caused org.apache.jackrabbit.test.api.nodetype.TestAll testsuite
to fail on nth > 1 'maven test' run

Modified:
    incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/version/InternalFrozenNodeImpl.java

Modified: incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/version/InternalFrozenNodeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/version/InternalFrozenNodeImpl.java?rev=332532&r1=332531&r2=332532&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/version/InternalFrozenNodeImpl.java
(original)
+++ incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/version/InternalFrozenNodeImpl.java
Fri Nov 11 03:57:04 2005
@@ -260,9 +260,7 @@
         NodeStateEx node = parent.addNode(name, QName.NT_FROZENNODE, null, true);
 
         // initialize the internal properties
-        if (src.isNodeType(QName.MIX_REFERENCEABLE)) {
-            node.setPropertyValue(QName.JCR_FROZENUUID, InternalValue.create(src.getUUID()));
-        }
+        node.setPropertyValue(QName.JCR_FROZENUUID, InternalValue.create(src.internalGetUUID()));
         node.setPropertyValue(QName.JCR_FROZENPRIMARYTYPE,
                 InternalValue.create(((NodeTypeImpl) src.getPrimaryNodeType()).getQName()));
         if (src.hasProperty(QName.JCR_MIXINTYPES)) {
@@ -299,7 +297,7 @@
             }
         }
 
-        // add the frozen children and vistories
+        // add the frozen children and histories
         NodeIterator niter = src.getNodes();
         while (niter.hasNext()) {
             NodeImpl child = (NodeImpl) niter.nextNode();



Mime
View raw message