Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6238129

Update SimpleDateFormat javadocs to explicitly specify Lenient mode for parsing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Future Project
    • Icon: P4 P4
    • None
    • 5.0
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: