cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1033803 - in /cayenne/main/branches/STABLE-2.0/cayenne: cayenne-java/src/cayenne/java/org/apache/cayenne/access/ObjectStore.java cayenne-other/release-notes/RELEASE-NOTES-2.0-SNAPSHOT.txt
Date Thu, 11 Nov 2010 02:40:19 GMT
Author: aadamchik
Date: Thu Nov 11 02:40:19 2010
New Revision: 1033803

URL: http://svn.apache.org/viewvc?rev=1033803&view=rev
Log:
CAY-1487 Access to ObjectStore.objectMap not thread safe when creating new object instance
(and processing snaphot events)

Modified:
    cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/access/ObjectStore.java
    cayenne/main/branches/STABLE-2.0/cayenne/cayenne-other/release-notes/RELEASE-NOTES-2.0-SNAPSHOT.txt

Modified: cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/access/ObjectStore.java
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/access/ObjectStore.java?rev=1033803&r1=1033802&r2=1033803&view=diff
==============================================================================
--- cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/access/ObjectStore.java
(original)
+++ cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/access/ObjectStore.java
Thu Nov 11 02:40:19 2010
@@ -1188,7 +1188,7 @@ public class ObjectStore implements Seri
     /**
      * @since 1.2
      */
-    public void registerNode(Object nodeId, Object nodeObject) {
+    public synchronized void registerNode(Object nodeId, Object nodeObject) {
         objectMap.put(nodeId, nodeObject);
 
         if (newObjectsMap != null) {

Modified: cayenne/main/branches/STABLE-2.0/cayenne/cayenne-other/release-notes/RELEASE-NOTES-2.0-SNAPSHOT.txt
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-2.0/cayenne/cayenne-other/release-notes/RELEASE-NOTES-2.0-SNAPSHOT.txt?rev=1033803&r1=1033802&r2=1033803&view=diff
==============================================================================
--- cayenne/main/branches/STABLE-2.0/cayenne/cayenne-other/release-notes/RELEASE-NOTES-2.0-SNAPSHOT.txt
(original)
+++ cayenne/main/branches/STABLE-2.0/cayenne/cayenne-other/release-notes/RELEASE-NOTES-2.0-SNAPSHOT.txt
Thu Nov 11 02:40:19 2010
@@ -26,6 +26,7 @@ CAY-1306 Binding Collection in Parameter
 CAY-1323 oracle.sql.TIMESTAMP in Result of query (only part of solution to fix explicit type
mapping)
 CAY-1354 Wrong Types mapping for selected values in Row Queries
 CAY-1388 Can't bind java.util.Date value in SQL Template
+CAY-1487 Access to ObjectStore.objectMap not thread safe when creating new object instance
(and processing snaphot events)
 
 ----------------------------------
 Release: 2.0.4



Mime
View raw message