db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r373120 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/Image.java
Date Sat, 28 Jan 2006 10:16:30 GMT
Author: arminw
Date: Sat Jan 28 02:16:20 2006
New Revision: 373120

URL: http://svn.apache.org/viewcvs?rev=373120&view=rev
Log:
fix bug, compare Proxy objects by identity not via .equals(...) (equals call will materialize
data)

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/Image.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/Image.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/Image.java?rev=373120&r1=373119&r2=373120&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/Image.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/Image.java Sat Jan 28 02:16:20
2006
@@ -238,7 +238,7 @@
             // deleted objects
             if(oldImage.isUnmaterializedProxy() || isUnmaterializedProxy())
             {
-                result = !collectionOrArray.equals(oldImage.collectionOrArray);
+                result = collectionOrArray != oldImage.collectionOrArray;
             }
             return result;
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message