SimpleDateFormat failed parsing a valid date string in ja locale

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P1
    • None
    • Affects Version/s: 1.1.4
    • Component/s: core-libs
    • sparc
    • solaris_2.5.1

      In ja locale, If I pass a valid date string, e.q. "Wed Jul 1 12:15:23 1988", through the following codes, the ruturn Date object d from the parse method is always a null.

      This only happens in ja locale. en locale is fine with it.

      This bug is reported to JDK 1.1.4.

      ----------------------------------------------------------------------
        SimpleDateFormat formatter =
        new SimpleDateFormat ("EEE MMM d HH:mm:ss yyyy");

        Date d = (Date) formatter.parse(dateString.trim(), new ParsePosition(0));

      -----------------------------------------------------------------------

            Assignee:
            Unassigned
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: