Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 72926 invoked from network); 27 Apr 2006 23:07:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Apr 2006 23:07:28 -0000 Received: (qmail 73970 invoked by uid 500); 27 Apr 2006 23:07:25 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 73887 invoked by uid 500); 27 Apr 2006 23:07:25 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 73876 invoked by uid 99); 27 Apr 2006 23:07:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Apr 2006 16:07:24 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [217.12.12.203] (HELO smtp813.mail.ukl.yahoo.com) (217.12.12.203) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 27 Apr 2006 16:07:24 -0700 Received: (qmail 38344 invoked from network); 27 Apr 2006 23:07:02 -0000 Received: from unknown (HELO ?127.0.0.1?) (scolebourne@btinternet.com@86.132.191.247 with plain) by smtp813.mail.ukl.yahoo.com with SMTP; 27 Apr 2006 23:07:01 -0000 Message-ID: <44514EAD.8050603@btopenworld.com> Date: Fri, 28 Apr 2006 00:07:25 +0100 From: Stephen Colebourne User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: Re: [lang] org.apache.commons.lang.Entities References: <19B78354A4AA3E4287384F3D30933F88BCA634@MAIL1.seagull.nl> In-Reply-To: <19B78354A4AA3E4287384F3D30933F88BCA634@MAIL1.seagull.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0617-2, 26/04/2006), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Gary Gregory wrote: > - Let users call StringEscapeUtils once to init the data like David > discovered. > - Change the init in Entities to lazy-init methods (which must be > synchronized) > - Change the init in Entities to use an on-demand holder class Would this work? I suspect not. static { Entities xml = new Entities(); xml.addEntities(BASIC_ARRAY); xml.addEntities(APOS_ARRAY); XML = xml; } I have to be honest that I did think that static blocks were inherently synced in Java. Stephen --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org