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

List.add(String int) does not throw ArrayIndexOutOfBoundsException if index < -1

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2.2
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_2.6

      Description

      The List.add(String int) method does not throw ArrayIndexOutOfBoundsException if index < -1.
      Instead, it adds the item to the end of the list.
      This is a violation of the spec.
      The spec was updated when bug 4112312 was fixed.
      Jeff Dunn reviewed the material for 4112312.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ehawkessunw Eric Hawkes (Inactive)
              Reporter:
              dgreensunw Dale Green (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: