jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r532720 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemManager.java
Date Thu, 26 Apr 2007 12:13:09 GMT
Author: stefan
Date: Thu Apr 26 05:13:08 2007
New Revision: 532720

URL: http://svn.apache.org/viewvc?view=rev&rev=532720
Log:
JCR-862: unsynchronized access on 'itemCache' map in ItemManager

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemManager.java?view=diff&rev=532720&r1=532719&r2=532720
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemManager.java
Thu Apr 26 05:13:08 2007
@@ -732,7 +732,7 @@
     /**
      * {@inheritDoc}
      */
-    public void stateCreated(ItemState created) {
+    public synchronized void stateCreated(ItemState created) {
         ItemImpl item = retrieveItem(created.getId());
         if (item != null) {
             item.stateCreated(created);
@@ -742,7 +742,7 @@
     /**
      * {@inheritDoc}
      */
-    public void stateModified(ItemState modified) {
+    public synchronized void stateModified(ItemState modified) {
         ItemImpl item = retrieveItem(modified.getId());
         if (item != null) {
             item.stateModified(modified);
@@ -752,7 +752,7 @@
     /**
      * {@inheritDoc}
      */
-    public void stateDestroyed(ItemState destroyed) {
+    public synchronized void stateDestroyed(ItemState destroyed) {
         ItemImpl item = retrieveItem(destroyed.getId());
         if (item != null) {
             item.stateDestroyed(destroyed);
@@ -762,7 +762,7 @@
     /**
      * {@inheritDoc}
      */
-    public void stateDiscarded(ItemState discarded) {
+    public synchronized void stateDiscarded(ItemState discarded) {
         ItemImpl item = retrieveItem(discarded.getId());
         if (item != null) {
             item.stateDiscarded(discarded);



Mime
View raw message