harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Li Jing Qin (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-6231) [classlib][text] DateFormat does not consider lenient
Date Mon, 15 Jun 2009 08:10:07 GMT

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

Li Jing Qin updated HARMONY-6231:
---------------------------------

    Attachment: HARMONY-6231.diff

Test case and fix are added

> [classlib][text] DateFormat does not consider lenient
> -----------------------------------------------------
>
>                 Key: HARMONY-6231
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6231
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Li Jing Qin
>            Priority: Minor
>         Attachments: HARMONY-6231.diff
>
>
> When user set lenient with strict parsing, harmony do not follow this. The simple test
case is follow:
> Date d = null;
> DateFormat output = new SimpleDateFormat("MM/dd/yy");
> output.setLenient(false);
> try {
>     d = output.parse("01/01/-1");
>     fail("Should throw ParseException here.");
> } catch (ParseException e) {}
> The reason is we are delegate the format to the icu, but forget set icu's lenient.
> So the solution is straight and simple.

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