Specification of ChoiceFormat#parse(String, ParsePosition) is inadequate

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: 25
    • Component/s: core-libs
    • b18
    • generic
    • generic

      ChoiceFormat#parse simply states that it returns a Number. Beyond that, it is entirely unspecified as to how the method determines what value to return.

      Additionally, this method provides no indication on what sub type of Number might be returned. This implementation always returns Double, and it would benefit callers to make this apparent, since Number is rarely useful by itself.

            Assignee:
            Justin Lu
            Reporter:
            Justin Lu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: