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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: docs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.2fcs
    • CPU:
      sparc
    • OS:
      solaris_2.5
    • Verification:
      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: