(bf) Can't allocate ByteBuffers over 2 GBytes

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 5.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: