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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.2.0
    • Component/s: 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.

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: