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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: