From 1ecdefae95b15e2ed1c1978465ae6589c2eb1e5d Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Wed, 19 Sep 2007 12:28:01 +0000 Subject: [PATCH] make this synchronized, especially the pop git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@577279 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/ComponentHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/ComponentHelper.java b/src/main/org/apache/tools/ant/ComponentHelper.java index 0618c2a93..866cbc60c 100644 --- a/src/main/org/apache/tools/ant/ComponentHelper.java +++ b/src/main/org/apache/tools/ant/ComponentHelper.java @@ -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(); }