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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • docs
    • beta
    • sparc
    • solaris_2.5



      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.

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: