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

Doc: SimpleDateFormat: unspecified behavior for some null parameters

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description



      Name: smR10189 Date: 06/10/2004



      The JDK 1.5 spec. doesn't specify behavior for some SimpleDateFormat
      methods if null value is passed as parameter.
      For the following methods the spec. should be clarified:

      1) public SimpleDateFormat(String pattern, Locale locale)
      To specify: when 'locale' parameter is null

      2) public StringBuffer format(Date date,
                                 StringBuffer toAppendTo,
                                 FieldPosition pos)
      To specify: when 'toAppendTo' or 'pos' parameter is null

      3) public void set2DigitYearStart(Date startDate)
      To specify: when 'startDate' parameter is null

      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nishjain Nishit Jain
                Reporter:
                duke J. Duke (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: