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

(bf) FloatBuffer.wrap does not throw IndexOutOfBoundsException

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: