You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/05/24 15:46:45 UTC

svn commit: r541302 - /lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNodeRCML.java

Author: andreas
Date: Thu May 24 06:46:44 2007
New Revision: 541302

URL: http://svn.apache.org/viewvc?view=rev&rev=541302
Log:
Make SourceNodeRCML.write() synchronized to avoid ConcurrentModificationErrors

Modified:
    lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNodeRCML.java

Modified: lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNodeRCML.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNodeRCML.java?view=diff&rev=541302&r1=541301&r2=541302
==============================================================================
--- lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNodeRCML.java (original)
+++ lenya/trunk/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNodeRCML.java Thu May 24 06:46:44 2007
@@ -104,7 +104,7 @@
      * @throws IOException if an error occurs
      * @throws Exception if an error occurs
      */
-    public void write() throws Exception {
+    public synchronized void write() throws Exception {
         if (getDocument() == null) {
             throw new IllegalStateException("The XML for RC source [" + getRcmlSourceUri()
                     + "] is null!");



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org