Update SimpleDateFormat javadocs to explicitly specify Lenient mode for parsing

XMLWordPrintable

    • Type: Bug
    • Resolution: Future Project
    • Priority: P4
    • None
    • Affects Version/s: 5.0
    • Component/s: core-libs
    • None
    • x86
    • windows_xp

      The present description of the public Date parse(String text, ParsePosition pos) in SimpleDateFormat does not describe the effect of non-lenient mode for parsing.
      In order to reduce developer confusion when invalid dates are parsed this information should be explicitly mentioned either in the method description or the overview of SimpleDateFormat.
      For example the evaluation of Bug 4920608 can be included
      "Use non-lenient mode for parsing, which will throw ParseException with invalid dates. "
      ###@###.### 2005-03-09 13:37:42 GMT

            Assignee:
            Masayoshi Okutsu
            Reporter:
            Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: