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

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

XMLWordPrintable

    • 1.2.2
    • generic, sparc
    • generic, solaris_2.6

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: