ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/attachments ManagedMemoryDataSource.java
Date Fri, 15 Oct 2004 14:38:08 GMT
dims        2004/10/15 07:38:08

  Modified:    java/src/org/apache/axis/attachments
                        ManagedMemoryDataSource.java
  Log:
  Fix for AXIS-1584 - ConcurrentModificationException in ManagedMemoryDataSource class
  
  Revision  Changes    Path
  1.35      +3 -5      ws-axis/java/src/org/apache/axis/attachments/ManagedMemoryDataSource.java
  
  Index: ManagedMemoryDataSource.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/attachments/ManagedMemoryDataSource.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- ManagedMemoryDataSource.java	26 Apr 2004 11:51:43 -0000	1.34
  +++ ManagedMemoryDataSource.java	15 Oct 2004 14:38:08 -0000	1.35
  @@ -449,10 +449,9 @@
                   cachediskstream = null;
               }
   
  -            for (java.util.Iterator i = readers.keySet().iterator();
  -                 i.hasNext();) {
  -                Instream stream = (Instream) i.next();
  -
  +            Object[] array = readers.keySet().toArray();
  +            for (int i = 0; i < array.length; i++) {
  +                Instream stream = (Instream) array[i];
                   if (null != stream) {
                       try {
                           stream.close();
  @@ -460,7 +459,6 @@
                       }
                   }
               }
  -
               readers.clear();
   
               try {
  
  
  

Mime
View raw message