javadoc of SimpleDateFormat methods should specify NullPointerExceptions

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • 9
    • Affects Version/s: 8u31
    • Component/s: core-libs
    • x86
    • windows_8

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      The following methods in SimpleDateFormat should be corrected to specify the behavior of passing null as parameters:

      format(Date date, StringBuffer toAppendTo, FieldPosition pos)
      @throws NullPointerException if any of the parameters is null

      set2DigitYearStart(Date startDate)
      @throws NullPointerException if startDate is null



      REPRODUCIBILITY :
      This bug can be reproduced always.

            Assignee:
            Nishit Jain
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: