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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 1.2.0
    • 1.2.0
    • docs
    • 1.2fcs
    • sparc
    • solaris_2.5
    • Verified

    Description



      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.

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: