geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@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
Date Wed, 22 Aug 2007 06:54:30 GMT

    [ 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.


Mime
View raw message