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

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

    XMLWordPrintable

Details

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

    Description

      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}.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: