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

ChoiceFormat does not specify IllegalArgumentExceptions

    XMLWordPrintable

Details

    • b14
    • generic
    • generic

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: