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

(bf) Can't allocate ByteBuffers over 2 GBytes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      J2SE 1.4 - 5.0

      ADDITIONAL OS VERSION INFORMATION :
      WindowsXP SP2

      A DESCRIPTION OF THE PROBLEM :
      The method java.nio.ByteBuffer.allocate() takes an int as its argument, not a long. This limits the size of the byte buffer to 2 GBytes. There should be a version of the allocate() method that takes a long for allocating large byte buffers.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I should be able to allocate large byte buffers.

      REPRODUCIBILITY :
      This bug can be reproduced always.

            iris Iris Clark
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: