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

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

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 22
    • 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}.

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

              Created:
              Updated:
              Resolved: