Format.format(Object, StringBuffer, FieldPosition):
specification: NPE; no implementation
DateFormat.format(Object, StringBuffer, FieldPosition):
specification: unspecified; implementation: pass-through
DateFormat.format(Date, StringBuffer, FieldPosition):
specification: unspecified; no implementation
SimpleDateFormat.format(Date, StringBuffer, FieldPosition):
specification: unspecified; implementation: NPE
MessageFormat.format(Object, StringBuffer, FieldPosition):
specification: unspecified; implementation: no exception
MessageFormat.format(Object[], StringBuffer, FieldPosition):
specification: unspecified; implementation: no exception
NumberFormat.format(Object, StringBuffer, FieldPosition):
specification: NPE; implementation: pass-through
NumberFormat.format(double, StringBuffer, FieldPosition):
specification: unspecified; no implementation
NumberFormat.format(long, StringBuffer, FieldPosition):
specification: unspecified; no implementation
DecimalFormat.format(Object, StringBuffer, FieldPosition):
specification: NPE; implementation: pass-through
DecimalFormat.format(double, StringBuffer, FieldPosition):
specification: unspecified; implementation: NPE
DecimalFormat.format(long, StringBuffer, FieldPosition):
specification: unspecified; implementation: NPE
ChoiceFormat.format(double, StringBuffer, FieldPosition):
specification: unspecified; implementation: no exception
ChoiceFormat.format(long, StringBuffer, FieldPosition):
specification: unspecified; implementation: pass-through
The specifications and implementations need to be made consistent. Allowing null FieldPositions in general seems the best approach.
###@###.### 2005-03-03 02:45:20 GMT
- 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-8073209 javadoc of SimpleDateFormat methods should specify NullPointerExceptions
- Closed
-
JDK-8073210 javadoc of DateFormat methods should specify NullPointerExceptions
- Closed
-
JDK-8073211 javadoc of Format parseObject methods should specify NullPointerExceptions
- Closed
-
JDK-8073218 javadoc of MessageFormat methods should specify NullPointerExceptions
- Closed