Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D1E84107CD for ; Tue, 31 Dec 2013 11:51:20 +0000 (UTC) Received: (qmail 13675 invoked by uid 500); 31 Dec 2013 11:51:05 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 13536 invoked by uid 500); 31 Dec 2013 11:51:03 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 13339 invoked by uid 99); 31 Dec 2013 11:50:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Dec 2013 11:50:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Dec 2013 11:50:55 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id AE4CF23888D7 for ; Tue, 31 Dec 2013 11:50:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1554405 - /ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java Date: Tue, 31 Dec 2013 11:50:34 -0000 To: notifications@ant.apache.org From: bodewig@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131231115034.AE4CF23888D7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bodewig Date: Tue Dec 31 11:50:34 2013 New Revision: 1554405 URL: http://svn.apache.org/r1554405 Log: synchronize access to helpers cache - PR 37501 Modified: ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java Modified: ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java?rev=1554405&r1=1554404&r2=1554405&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java Tue Dec 31 11:50:34 2013 @@ -343,7 +343,7 @@ public final class IntrospectionHelper { * * @return a helper for the specified class */ - public static IntrospectionHelper getHelper(Project p, Class c) { + public synchronized static IntrospectionHelper getHelper(Project p, Class c) { IntrospectionHelper ih = HELPERS.get(c.getName()); // If a helper cannot be found, or if the helper is for another // classloader, create a new IH @@ -1499,7 +1499,7 @@ public final class IntrospectionHelper { /** * Clears the static cache of on build finished. */ - public static void clearCache() { + public synchronized static void clearCache() { HELPERS.clear(); }