Author: stevel
Date: Wed Sep 19 05:28:01 2007
New Revision: 577279

URL: http://svn.apache.org/viewvc?rev=577279&view=rev
Log:
make this synchronized, especially the pop

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java?rev=577279&r1=577278&r2=577279&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java Wed Sep 
19 05:28:01 2007
@@ -696,7 +696,7 @@
      * Called at the start of processing an antlib.
      * @param uri the uri that is associated with this antlib.
      */
-    public void enterAntLib(String uri) {
+    public synchronized void enterAntLib(String uri) {
         antLibCurrentUri = uri;
         antLibStack.push(uri);
     }
@@ -711,7 +711,7 @@
     /**
      * Called at the end of processing an antlib.
      */
-    public void exitAntLib() {
+    public synchronized void exitAntLib() {
         antLibStack.pop();
         antLibCurrentUri = (antLibStack.size() == 0) ? null : (String) 
antLibStack.peek();
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to