geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacek Laskowski (JIRA)" <j...@apache.org>
Subject [jira] Closed: (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 08:10:31 GMT

     [ https://issues.apache.org/jira/browse/XBEAN-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jacek Laskowski closed XBEAN-91.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.2

$ svn ci .
...
Sending        xbean-reflect/pom.xml
Sending        xbean-reflect/src/main/java/org/apache/xbean/propertyeditor/DateEditor.java
Adding         xbean-reflect/src/test/java/org/apache/xbean/propertyeditor
Adding         xbean-reflect/src/test/java/org/apache/xbean/propertyeditor/DateEditorTest.java
Transmitting file data ...
Committed revision 568491.

> 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
>            Assignee: Jacek Laskowski
>             Fix For: 3.2
>
>         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