ListFormat::parseObject() spec can be improved on parsePosition valid values

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P3
    • 22
    • Component/s: core-libs
    • None
    • minimal
    • This is simply a spec clarification.
    • Java API
    • SE

      Summary

      Clarify possible values for parsePosition argument in ListFormat::parseObject()

      Problem

      Currently, there is no description about possible values for parsePosition argument in the spec.

      Solution

      Add @throws IndexOutOfBoundsException clause in the method description for invalid parseObject argument.

      Specification

      Add the following @throws clause in the method description:

      +      * @throws IndexOutOfBoundsException if the starting index given by
      +      *            {@code parsePos} is outside {@code source}.
      

            Assignee:
            Naoto Sato
            Reporter:
            Krushnareddy Ganapureddy
            Iris Clark
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: