Browse Source

make this synchronized, especially the pop

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@577279 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 17 years ago
parent
commit
1ecdefae95
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/ComponentHelper.java

+ 2
- 2
src/main/org/apache/tools/ant/ComponentHelper.java View File

@@ -696,7 +696,7 @@ public class ComponentHelper {
* 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 @@ public class ComponentHelper {
/**
* 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();
}


Loading…
Cancel
Save