From b1f07fa5504beeeffc19fc6be6587738b0bf5c8c Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Fri, 17 Oct 2003 08:09:46 +0000 Subject: [PATCH] synchonize ComponentHelper#checkNamespace() This fixes a bug with use of and xmlns:prefix="antlib:package echo hello echo hello - need a unit test for this git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275522 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/ComponentHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/ComponentHelper.java b/src/main/org/apache/tools/ant/ComponentHelper.java index e7cc4d6c2..c81f88857 100644 --- a/src/main/org/apache/tools/ant/ComponentHelper.java +++ b/src/main/org/apache/tools/ant/ComponentHelper.java @@ -806,7 +806,7 @@ public class ComponentHelper { * called for each component name, check if the * associated URI has been examined for antlibs. */ - private void checkNamespace(String componentName) { + private synchronized void checkNamespace(String componentName) { if (componentName.indexOf(':') == -1) { return; // not a namespaced name }