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

System.arraycopy should raise "ArrayIndexOutOfBoundsException".

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • docs
    • None
    • beta
    • generic
    • solaris_2.6

      In the 1.3 documentation, System.arraycopy is specified as throwing
      "IndexOutOfBoundsException", rather than the more specific exception
      "ArrayIndexOutOfBoundsException". (See
      http://java.sun.com/products/jdk/1.3/docs/api/java/lang/System.html#arraycopy(java.lang.Object, int, java.lang.Object, int, int)

      There exist some tests that expect the ArrayIndexOutOfBoundsException,
      notably the _201_check minimal-conformance test of the SpecJVM98
      benchmark suite (aka "PepTest").

            dkramersunw Douglas Kramer (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: