Author: mbenson
Date: Mon Jun 30 10:51:35 2008
New Revision: 672840

URL: http://svn.apache.org/viewvc?rev=672840&view=rev
Log:
add subclass hook

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Resources.java

Modified: 
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Resources.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Resources.java?rev=672840&r1=672839&r2=672840&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Resources.java 
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Resources.java 
Mon Jun 30 10:51:35 2008
@@ -122,7 +122,7 @@
             rc = new Vector();
         }
         rc.add(c);
-        FailFast.invalidate(this);
+        invalidateExistingIterators();
         coll = null;
         setChecked(false);
     }
@@ -216,6 +216,13 @@
     }
 
     /**
+     * Allow subclasses to notify existing Iterators they have experienced 
concurrent modification.
+     */
+    protected void invalidateExistingIterators() {
+        FailFast.invalidate(this);
+    }
+
+    /**
      * Resolves references, allowing any ResourceCollection.
      * @return the referenced ResourceCollection.
      */


Reply via email to