ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r577279 - /ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java
Date Wed, 19 Sep 2007 12:28:02 GMT
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message