jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r638374 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/XAItemStateManager.java
Date Tue, 18 Mar 2008 14:11:29 GMT
Author: mreutegg
Date: Tue Mar 18 07:11:28 2008
New Revision: 638374

URL: http://svn.apache.org/viewvc?rev=638374&view=rev
Log:
JCR-1484: Node.getReferences() does not properly reflect saved but not yet committed changes
- use hasReferences() instead of checking size of list

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/XAItemStateManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/XAItemStateManager.java?rev=638374&r1=638373&r2=638374&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/XAItemStateManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/XAItemStateManager.java
Tue Mar 18 07:11:28 2008
@@ -284,8 +284,7 @@
             return true;
         }
         try {
-            NodeReferences refs = getReferences(id);
-            return refs.getReferences().size() > 0;
+            return getReferences(id).hasReferences();
         } catch (ItemStateException e) {
             return false;
         }



Mime
View raw message