jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r429293 - /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/ItemImpl.java
Date Mon, 07 Aug 2006 10:34:16 GMT
Author: stefan
Date: Mon Aug  7 03:34:13 2006
New Revision: 429293

URL: http://svn.apache.org/viewvc?rev=429293&view=rev
Log:
JCR-468: the code in ItemImpl.isSame() only compares the item id, but not the source workspace.

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

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/ItemImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/ItemImpl.java?rev=429293&r1=429292&r2=429293&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/ItemImpl.java (original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/ItemImpl.java Mon
Aug  7 03:34:13 2006
@@ -1420,7 +1420,9 @@
         }
         if (otherItem instanceof ItemImpl) {
             ItemImpl other = (ItemImpl) otherItem;
-            return id.equals(other.id);
+            return id.equals(other.id) 
+                    && session.getWorkspace().getName().equals(
+                            other.getSession().getWorkspace().getName());
         }
         return false;
     }



Mime
View raw message