Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 55495 invoked from network); 31 Oct 2007 04:00:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2007 04:00:13 -0000 Received: (qmail 2873 invoked by uid 500); 31 Oct 2007 03:59:59 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 2801 invoked by uid 500); 31 Oct 2007 03:59:59 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 2787 invoked by uid 99); 31 Oct 2007 03:59:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2007 20:59:59 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2007 04:00:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 78A76714238 for ; Tue, 30 Oct 2007 20:59:51 -0700 (PDT) Message-ID: <27942295.1193803191492.JavaMail.jira@brutus> Date: Tue, 30 Oct 2007 20:59:51 -0700 (PDT) From: "Henri Yandell (JIRA)" To: issues@commons.apache.org Subject: [jira] Closed: (LANG-368) FastDateFormat getDateInstance() and getDateTimeInstance() assume Locale.getDefault() won't change In-Reply-To: <12431832.1193752370612.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LANG-368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Henri Yandell closed LANG-368. ------------------------------ Resolution: Fixed Fix Version/s: 2.4 > FastDateFormat getDateInstance() and getDateTimeInstance() assume Locale.getDefault() won't change > -------------------------------------------------------------------------------------------------- > > Key: LANG-368 > URL: https://issues.apache.org/jira/browse/LANG-368 > Project: Commons Lang > Issue Type: Bug > Reporter: Sebb > Fix For: 2.4 > > Attachments: FastDateFormat.patch, FastDateFormatTest.patch > > > The FastDateFormat getDateInstance() and getDateTimeInstance() methods create the HashMap key from various items including the locale. > If the locale is null, then it is not made part of the key, but the stored object is created using the current default locale. > If the Locale is changed subsequently, then the wrong locale is applied. > Patch for test case to follow. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.