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

javadoc of SimpleDateFormat methods should specify NullPointerExceptions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 8u31
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: