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

javadoc of SimpleDateFormat methods should specify NullPointerExceptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 9
    • 8u31
    • 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.

            nishjain Nishit Jain
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: