JDK-8217254 : CompactNumberFormat:: CompactNumberFormat���() constructor does not comply with spec.
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.text
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-01-16
  • Updated: 2019-03-14
  • Resolved: 2019-03-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 13
13 b12Fixed
Related Reports
Relates :  
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.