(bf) FloatBuffer.wrap does not throw IndexOutOfBoundsException

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.4.0
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: