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

List spec doesn't specify behavior of replaceItem(String,int) for inv. int param

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.4.0
    • Component/s: docs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      sparc
    • OS:
      solaris_2.5

      Description



      Name: dsC58869 Date: 07/02/98



      The java.awt.List spec says the following about the
      replaceItem(String newValue, int index) method:

          /**
           * Replaces the item at the specified index in the scrolling list
           * with the new string.
           * @param newValue a new string to replace an existing item.
           * @param index the position of the item to replace.
           */
          public synchronized void replaceItem(String newValue, int index) {

      The spec doesn't specify that this method throws
      an ArrayIndexOutOfBoundsException if the index is out of range.


      ======================================================================
       Justification:
      Wrong specification, should be fixed for JCK testing.

      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              sharonz Sharon Zakhour (Inactive)
              Reporter:
              dsilaev Dmitri Silaev
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: