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

(bf) FloatBuffer.wrap does not throw IndexOutOfBoundsException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • core-libs
    • sparc
    • solaris_8

      The FloatBuffer's wrap(float[],int,int) is supposed to throw IndexOutofBoundsException for
      1)offset > array.length
      2)length >array.length - offset
      3)offset and length are negative

      However It throws IllegalArgumentException

            iris Iris Clark
            bhamehta Bhakti Mehta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: