Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 54166 invoked from network); 3 Nov 2007 21:31:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Nov 2007 21:31:13 -0000 Received: (qmail 27012 invoked by uid 500); 3 Nov 2007 21:30:59 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 26948 invoked by uid 500); 3 Nov 2007 21:30: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 26939 invoked by uid 99); 3 Nov 2007 21:30:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Nov 2007 14:30: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; Sat, 03 Nov 2007 21:31:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 90F1A7141EB for ; Sat, 3 Nov 2007 14:30:50 -0700 (PDT) Message-ID: <8697499.1194125450568.JavaMail.jira@brutus> Date: Sat, 3 Nov 2007 14:30:50 -0700 (PDT) From: "Henri Yandell (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (LANG-367) FastDateFormat thread safety In-Reply-To: <15201706.1193750811030.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-367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540007 ] Henri Yandell commented on LANG-367: ------------------------------------ The format methods don't hit SimpleDateFormat though - they're the ones getting replaced. > FastDateFormat thread safety > ---------------------------- > > Key: LANG-367 > URL: https://issues.apache.org/jira/browse/LANG-367 > Project: Commons Lang > Issue Type: Bug > Reporter: Sebb > Fix For: 2.4 > > Attachments: FastDateFormat.patch > > > FastDateFormat has several static HashMaps. These are currently not final, so there is no guarantee that they will be visible to all threads. > Patch to follow. > Also, as far as I can make out, the class shares SimpleDateFormat instances between threads. > It does not document why this is OK. > I'm guessing that it assumes that instances of the SimpleDateFormat class are thread-safe provided that they have the same attributes, but this is not documented. If this is the case, it's not clear that it is a valid assumption. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.