jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpfis...@apache.org
Subject svn commit: r920883 - /jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java
Date Tue, 09 Mar 2010 14:10:25 GMT
Author: dpfister
Date: Tue Mar  9 14:10:24 2010
New Revision: 920883

URL: http://svn.apache.org/viewvc?rev=920883&view=rev
Log:
JCR-2552 - Creating a node of type nt:hierarchyNode (or derived) on a JCR 1.0 compliant repository
fails

Modified:
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java?rev=920883&r1=920882&r2=920883&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java
Tue Mar  9 14:10:24 2010
@@ -576,8 +576,10 @@ public class SessionItemStateManager ext
                 genValues = getQValues(mixins, qValueFactory);
 
             } else if (NameConstants.JCR_CREATED.equals(name)
-                    && NameConstants.MIX_CREATED.equals(declaringNT)) {
-                // jcr:created property of a mix:created
+                    && (NameConstants.MIX_CREATED.equals(declaringNT) ||
+                            NameConstants.NT_HIERARCHYNODE.equals(declaringNT))) {
+
+                // jcr:created property of a mix:created or nt:hierarchyNode
                 genValues = new QValue[]{qValueFactory.create(Calendar.getInstance())};
 
             } else if (NameConstants.JCR_CREATEDBY.equals(name)



Mime
View raw message