JDK-8073209 : javadoc of SimpleDateFormat methods should specify NullPointerExceptions
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.text
  • Affected Version: 8u31
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • OS: windows_8
  • CPU: x86
  • Submitted: 2015-02-15
  • Updated: 2016-11-09
  • Resolved: 2016-11-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
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.


Comments
It is a duplicate of JDK-8169480
09-11-2016