FULL PRODUCT VERSION :
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
A DESCRIPTION OF THE PROBLEM :
The following methods in MessageFormat should specify the behavior of passing null as parameters:
applyPattern(String pattern)
@throws NullPointerException if pattern is null
format(Object[] arguments, StringBuffer result, FieldPosition pos)
@throws NullPointerException if result is null
format(Object arguments, StringBuffer result, FieldPosition pos)
@throws NullPointerException if result is null
format(String pattern, Object... arguments)
@throws NullPointerException if any of the parameters is null
REPRODUCIBILITY :
This bug can be reproduced always.
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
A DESCRIPTION OF THE PROBLEM :
The following methods in MessageFormat should specify the behavior of passing null as parameters:
applyPattern(String pattern)
@throws NullPointerException if pattern is null
format(Object[] arguments, StringBuffer result, FieldPosition pos)
@throws NullPointerException if result is null
format(Object arguments, StringBuffer result, FieldPosition pos)
@throws NullPointerException if result is null
format(String pattern, Object... arguments)
@throws NullPointerException if any of the parameters 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-6235363 [Fmt-*] Doc: Inconsistencies in handling of null FieldPosition in Format and subclasses
-
- Closed
-