Details
-
Bug
-
Resolution: Fixed
-
P3
-
None
-
b12
Description
public CompactNumberFormat(String decimalPattern,
DecimalFormatSymbols symbols,
String[] compactPatterns)
As per spec :
IllegalArgumentException - if the given decimalPattern or the compactPatterns array contains an invalid pattern or if a null appears in the array of compact patterns
When I provide the ‘null’ in the compactPatterns array :
I expect : IAE,
Actual : NullpointerException.
DecimalFormatSymbols symbols,
String[] compactPatterns)
As per spec :
IllegalArgumentException - if the given decimalPattern or the compactPatterns array contains an invalid pattern or if a null appears in the array of compact patterns
When I provide the ‘null’ in the compactPatterns array :
I expect : IAE,
Actual : NullpointerException.
Attachments
Issue Links
- relates to
-
JDK-8188147 Compact Number Formatting support
- Closed