When the parameters and return types for FileChannel.transfer{From,To} and
{Scatter,Gather}ingByteChannel were revised from int to long, only a minimum set
of changes was done. We need to verify that the actual implementations can handle large files.
For an example of potential problems, see the implementation of
sun.io.ch.FileChannelImpl.transferTo(). It is impossible for that method to
ever return anything larger than Integer.MAX_VALUE.
-- iag@sfbay 2002-02-14
{Scatter,Gather}ingByteChannel were revised from int to long, only a minimum set
of changes was done. We need to verify that the actual implementations can handle large files.
For an example of potential problems, see the implementation of
sun.io.ch.FileChannelImpl.transferTo(). It is impossible for that method to
ever return anything larger than Integer.MAX_VALUE.
-- iag@sfbay 2002-02-14
- relates to
-
JDK-4643189 (fs) FileChannel.transferTo() for files greater than 2^31-1 bytes (win)
- Closed
-
JDK-4470017 (fs) FileChannel.transfer{From,To} methods broken for large files (spec)
- Resolved