java.awt.List spec doesn't specify behavior of remove(int) for invalid parameter

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.2.0
    • Affects Version/s: 1.2.0
    • Component/s: docs
    • 1.2fcs
    • sparc
    • solaris_2.5
    • Verified



      Name: dsC58869 Date: 07/02/98



      The java.awt.List spec says the following about the remove(int position)
      method:

          /**
           * Remove the item at the specified position
           * from this scrolling list.
           * @param position the index of the item to delete.
           * @see java.awt.List#add(String, int)
           * @since JDK1.1
           */
          public synchronized void remove(int position) {

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


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

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: