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