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

javadoc of SimpleDateFormat methods should specify NullPointerExceptions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • 9
    • 8u31
    • core-libs
    • x86
    • windows_8

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: