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.