Return-Path: Delivered-To: apmail-geronimo-xbean-dev-archive@locus.apache.org Received: (qmail 51362 invoked from network); 22 Aug 2007 06:55:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Aug 2007 06:55:03 -0000 Received: (qmail 92768 invoked by uid 500); 22 Aug 2007 06:55:00 -0000 Delivered-To: apmail-geronimo-xbean-dev-archive@geronimo.apache.org Received: (qmail 92752 invoked by uid 500); 22 Aug 2007 06:55:00 -0000 Mailing-List: contact xbean-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: xbean-dev@geronimo.apache.org Delivered-To: mailing list xbean-dev@geronimo.apache.org Received: (qmail 92743 invoked by uid 99); 22 Aug 2007 06:55:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 23:55:00 -0700 X-ASF-Spam-Status: No, hits=-97.1 required=10.0 tests=ALL_TRUSTED,GAPPY_SUBJECT,URIBL_RHS_DOB 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, 22 Aug 2007 06:55:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A3D5471420C for ; Tue, 21 Aug 2007 23:54:30 -0700 (PDT) Message-ID: <28329384.1187765670652.JavaMail.jira@brutus> Date: Tue, 21 Aug 2007 23:54:30 -0700 (PDT) From: "Guillaume Nodet (JIRA)" To: xbean-dev@geronimo.apache.org Subject: [jira] Commented: (XBEAN-91) o.a.x.p.DateEditor.toObjectImpl throws exception when date format is in different locale than the default one In-Reply-To: <30325886.1187735670938.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/XBEAN-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521707 ] Guillaume Nodet commented on XBEAN-91: -------------------------------------- Date parsing has always been a nightmare ... The patch is fine for me and if nobody objects you sould just commit it ;-) > o.a.x.p.DateEditor.toObjectImpl throws exception when date format is in different locale than the default one > ------------------------------------------------------------------------------------------------------------- > > Key: XBEAN-91 > URL: https://issues.apache.org/jira/browse/XBEAN-91 > Project: XBean > Issue Type: Bug > Components: reflect > Affects Versions: 3.1 > Reporter: Jacek Laskowski > Attachments: XBEAN-91.patch > > > There's the expanded-env-entries sample that uses a date in Locale.US format with DateFormat.MEDIUM style. It didn't run well on Polish locale (pl) and XBean's org.apache.xbean.propertyeditor.DateEditorTest.testToObjectImpl kept throwing "java.text.ParseException: Unparseable date: "Mar 1, 1954"" exception. > Attached is a patch for it. I'm not happy with it (I think it might've been written better), so I haven't applied it to the repo, but rather attach it here for others to look at it and correct where applicable. > p.s. The "Unreleased Versions" contains 3.1 which should be 3.2, I guess. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.