United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4638365 : (fs) FileChannel.transfer{From,To}, {Scatter,Gather}ingByteChannel & large files

Details
Type:
Enhancement
Submit Date:
2002-02-15
Status:
Resolved
Updated Date:
2003-04-12
Project Name:
JDK
Resolved Date:
2002-09-02
Component:
core-libs
OS:
generic
Sub-Component:
java.nio
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
1.4.2 (mantis)

Related Reports
Relates:
Relates:

Sub Tasks

Description
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

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis
mantis-b02

FIXED IN:
mantis
mantis-b02

INTEGRATED IN:
mantis
mantis-b02


                                     
2004-06-14
EVALUATION

The spec makes no guarantee about how many bytes are processed, so it is perfectly legal to always return values that fit into an integer. Therefore I am changing this to an RFE for Mantis or Tiger.
###@###.### 2002-04-09
                                     
2002-04-09



Hardware and Software, Engineered to Work Together