CompactNumberFormat:: CompactNumberFormat​() constructor does not comply with spec.

XMLWordPrintable

    • b12

      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.

            Assignee:
            Nishit Jain
            Reporter:
            Krushnareddy Ganapureddy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: