I'm seeing some weird behavior with MappedByteBuffer. It only seems to write 1024 * n + 1 bytes ignoring the other bytes. This happens only on an AIX machine. The same code works fine in Windows.
Here are a few runs with different values for size:
For the first run, the size is 1024 bytes , but only 1 byte is written to the file "
test". If the size is between 1025 and 2048, only the first 1025 bytes are written to "test" and so on.
Anyone have any idea as to what is happening here?