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

ChoiceFormat does not specify IllegalArgumentExceptions

XMLWordPrintable

    • b14
    • generic
    • generic

      ChoiceFormat:setChoices(double[] limits, String[] formats) and ChoiceFormat::applyPattern(String newPattern) can throw IllegalArgumentException. As a result, the constructors that call them can also throw the same exception.

      The spec is silent on this behavior, the API doc should be updated to specify this.

            jlu Justin Lu
            kganapureddy Krushnareddy Ganapureddy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: