jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1479518 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java
Date Mon, 06 May 2013 11:03:06 GMT
Author: jukka
Date: Mon May  6 11:03:05 2013
New Revision: 1479518

URL: http://svn.apache.org/r1479518
Log:
JCR-3523: Workspace.copy changes WeakReferences to References

Patch by Morrell Jacobs

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java?rev=1479518&r1=1479517&r2=1479518&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java
Mon May  6 11:03:05 2013
@@ -438,7 +438,8 @@ public class BatchedItemOperations exten
             for (int i = 0; i < values.length; i++) {
                 NodeId adjusted = refTracker.getMappedId(values[i].getNodeId());
                 if (adjusted != null) {
-                    newVals[i] = InternalValue.create(adjusted);
+                    boolean weak = prop.getType() == PropertyType.WEAKREFERENCE;
+                    newVals[i] = InternalValue.create(adjusted, weak);
                     modified = true;
                 } else {
                     // reference doesn't need adjusting, just copy old value



Mime
View raw message