jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r472817 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java
Date Thu, 09 Nov 2006 09:00:32 GMT
Author: angela
Date: Thu Nov  9 01:00:31 2006
New Revision: 472817

URL: http://svn.apache.org/viewvc?view=rev&rev=472817
Log:
work in progress

- create mixin property -> wrong initial value.

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

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java?view=diff&rev=472817&r1=472816&r2=472817
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java
Thu Nov  9 01:00:31 2006
@@ -557,7 +557,7 @@
                 // create new jcr:mixinTypes property
                 EffectiveNodeType ent = validator.getEffectiveNodeType(nState);
                 QPropertyDefinition pd = ent.getApplicablePropertyDefinition(QName.JCR_MIXINTYPES,
PropertyType.NAME, true);
-                QValue[] mixinValue = QValue.create(nState.getMixinTypeNames());
+                QValue[] mixinValue = QValue.create(mixinNames);
                 int options = ItemStateValidator.CHECK_LOCK | ItemStateValidator.CHECK_VERSIONING;
                 addPropertyState(nState, pd.getQName(), pd.getRequiredType(), mixinValue,
pd, options);
             }
@@ -687,7 +687,7 @@
         validator.checkAddProperty(parent, propertyName, pDef, options);
 
         // create property state
-        PropertyState propState = transientStateMgr.createNewPropertyState(propertyName,
parent, pDef, values, propertyType);
+        transientStateMgr.createNewPropertyState(propertyName, parent, pDef, values, propertyType);
     }
 
     private void addNodeState(NodeState parent, QName nodeName, QName nodeTypeName,



Mime
View raw message