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

(bf) Allocation methods not specified to throw IAE on negative capacities

XMLWordPrintable

    • mantis
    • sparc
    • solaris_8
    • Verified

      build-06 :
      java.nio.ByteBuffer.allocate(int capacity) and allocateDirect(int capacity)
      throws java.lang.IllegalArgumentException if the capacity is < 0 .
      This is not documented . The testcase AllocTest.java is attached .

            iris Iris Clark
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: