Author: areshetnyak
Date: 2010-02-11 07:48:45 -0500 (Thu, 11 Feb 2010)
New Revision: 1760
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/LockManagerImpl.java
Log:
EXOJCR-493 : The class cast exception in lockManagerImpl was fixed.
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/LockManagerImpl.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/LockManagerImpl.java 2010-02-11
10:14:00 UTC (rev 1759)
+++
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/LockManagerImpl.java 2010-02-11
12:48:45 UTC (rev 1760)
@@ -34,6 +34,7 @@
import org.exoplatform.services.jcr.dataflow.PlainChangesLogImpl;
import org.exoplatform.services.jcr.dataflow.TransactionChangesLog;
import org.exoplatform.services.jcr.dataflow.persistent.ItemsPersistenceListener;
+import org.exoplatform.services.jcr.dataflow.persistent.PersistedPropertyData;
import org.exoplatform.services.jcr.datamodel.InternalQName;
import org.exoplatform.services.jcr.datamodel.ItemData;
import org.exoplatform.services.jcr.datamodel.NodeData;
@@ -381,12 +382,12 @@
{
String owner =
- new
String(((((TransientPropertyData)(ownerState.getData())).getValues()).get(0))
+ new
String(((((PersistedPropertyData)(ownerState.getData())).getValues()).get(0))
.getAsByteArray(), Constants.DEFAULT_ENCODING);
boolean isDeep =
Boolean.valueOf(
- new
String(((((TransientPropertyData)(isDeepState.getData())).getValues()).get(0))
+ new
String(((((PersistedPropertyData)(isDeepState.getData())).getValues()).get(0))
.getAsByteArray(),
Constants.DEFAULT_ENCODING)).booleanValue();
createRemoteLock(currChangesLog.getSessionId(), nodeIdentifier,
lockToken, isDeep, false, owner);
Show replies by date