Ticket #6490 (new defect)

SVN Diffs for #6490

 

Opened 1 month ago

Last modified 4 weeks ago

Date Parsing fails with abbreviated month "mei."

Reported by: andy Assigned to: yoshito
Priority: assess Milestone: UNSCH
Component: formatting Version:
Keywords: Cc:
Load: Xref:
Java Version: Operating System:
Project (C/J): all Weeks:
Review:

Description

Date parsing fails when an abbreviated month name is the wide month name + "."
This makes the abbreviated from longer than the wide form.

We have patched a few locales to be this way, including nl.

Here are some resulting test failures from TestDateFormatRoundTrip:

FAIL: fmt->parse failed, error U_ILLEGAL_ARGUMENT_ERROR, str=28 mei. 1817 06:00:00 in locale: nl
FAIL: fmt->parse failed, error U_ILLEGAL_ARGUMENT_ERROR, str=27 mei. 0421 12:46 in locale: nl
FAIL: fmt->parse failed, error U_ILLEGAL_ARGUMENT_ERROR, str=7-mei.-1511 21:42 in locale: nl_BE
FAIL: fmt->parse failed, error U_ILLEGAL_ARGUMENT_ERROR, str=7 mei. 3143 17:10 in locale: nl_NL
            monthNames{
                format{
                    abbreviated{
                        "jan.", 
                        "feb.",
                        "mrt.",
                        "apr.",
                        "mei.",
                        "jun.",
                        "jul.",
                        "aug.",
                        "sep.",
                        "okt.",
                        "nov.",
                        "dec.",
                    }
                    wide{
                        "januari",
                        "februari",
                        "maart",
                        "april",
                        "mei",
                        ...

Note: TestDateFormatRoundTrip is based on random data, and will not always find this problem.

Attachments

Change History

08/06/08 17:00:40 changed by grhoten

Duplicate of #3618?

This problem is usually an indication of bad CLDR data.

08/13/08 11:26:50 changed by yoshito

  • owner changed from somebody to yoshito.

Add/Change #6490 (Date Parsing fails with abbreviated month "mei.")




Anti spam check: