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.
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
- duplicates
-
JDK-8169480 Inconsistencies across Format class hierarchy in their API spec and actual implementation of Exceptions
- Closed
- relates to
-
JDK-6235363 [Fmt-*] Doc: Inconsistencies in handling of null FieldPosition in Format and subclasses
- Resolved
-
JDK-6354947 [Fmt-*] Clarify DecimalFormat description of FieldPosition use
- Closed