Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8217254

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.

            nishjain Nishit Jain
            kganapureddy Krushnareddy Ganapureddy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: