Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BCA8330E1 for ; Sat, 30 Apr 2011 21:29:43 +0000 (UTC) Received: (qmail 51896 invoked by uid 500); 30 Apr 2011 21:29:43 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 51800 invoked by uid 500); 30 Apr 2011 21:29:43 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 51792 invoked by uid 99); 30 Apr 2011 21:29:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Apr 2011 21:29:43 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of flamefew@gmail.com designates 209.85.216.43 as permitted sender) Received: from [209.85.216.43] (HELO mail-qw0-f43.google.com) (209.85.216.43) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Apr 2011 21:29:36 +0000 Received: by qwf6 with SMTP id 6so2732774qwf.30 for ; Sat, 30 Apr 2011 14:29:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=XsC7q7dkQwAm4+HONpZ+6u1RkY1s0E2JoUSmJFgMung=; b=SXBvTYNLnHlFl+2NZWGYO3ccvg1LFEZIifowmKJwW6ajP93lAOiCdV2MCZ1NJy7XYm YAYxYdozSsIGu5fqxPsprkyAOBmEl5JEiw5cGHF0YK1G8g0o5Wr8cwt5XD5lgDDa0fYC GimqZp79cSrf6rbuM0JLCGoWJFDNeEqBG3Zgw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=kGRp8aSL653CEWncBexyPAMAt81rynU/eHoCS8UWOrvjhMDRiVEVj/K5TJ99K6sfmU Uhn6x3xlxTFLgkSrANtBErzkzTkkq189zZxPx7ODag8Wxz0XpyZCRyAFI5C/ndRmX0km pSK1iUjiSKCcZQP8Vg7y+asMxM0iYMfDPHK9M= MIME-Version: 1.0 Received: by 10.229.115.21 with SMTP id g21mr1553197qcq.230.1304198956039; Sat, 30 Apr 2011 14:29:16 -0700 (PDT) Received: by 10.229.190.6 with HTTP; Sat, 30 Apr 2011 14:29:15 -0700 (PDT) In-Reply-To: <4DBC5DF4.7040009@oliver-heger.de> References: <4DBB1594.6030801@oliver-heger.de> <4DBC5DF4.7040009@oliver-heger.de> Date: Sat, 30 Apr 2011 14:29:15 -0700 Message-ID: Subject: Re: [CANCEL] Re: [VOTE] [LANG] Release Commons Lang 3.0 (based on RC3) From: Henri Yandell To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Sat, Apr 30, 2011 at 12:07 PM, Oliver Heger wrote: > Am 29.04.2011 23:00, schrieb Henri Yandell: >> >> Oops - I built on 1.6 and should have built on 1.5. I'll rebuild from >> the tag and see if I get the error you get. >> >> Hen > > Sorry, still no luck, I get the same error. The test case only fails if the > test class is executed as a whole. It succeeds if it is executed standalone. > In the latter case a format object is newly created while it is obtained > from the cache in the former case. > > I assume that the problem has something to do with the fact that my default > locale is German which is also used explicitly by some of the tests. It > seems that JDK 1.5 creates a new Locale instance when the default locale is > changed. Thus the format object checked by the test has a German locale, but > it is not the same instance as passed to the assertSame() condition. > > I suggest changing the test to use assertEquals() rather than assertSame(). > This works in any case and should be a condition strong enough. Sounds good. I dont think it's a release blocker but a fine change to make to trunk. Hen --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org