JDK-4643189 : (fs) FileChannel.transferTo() for files greater than 2^31-1 bytes (win)
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_8
  • CPU: sparc
  • Submitted: 2002-02-26
  • Updated: 2004-03-19
  • Resolved: 2003-04-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2 b02Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
tested in build 1.4.1-beta-b02 :

In win2000 , the transferTo() does not transfer files > than 2^31-1 bytes.
it throws an exception of "java.io.IOException: The parameter is incorrect"

In solaris8 , Bytes transfered to Target channel are 2^31-1 even if the 
source channel file is greater than 2^31-1

In LinuxRH7.1 , it gives an error of java.io.IOException: Input/output error

The testcase is attached 

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis-b02 FIXED IN: mantis-b02 INTEGRATED IN: mantis-b02 VERIFIED IN: mantis-beta
14-06-2004

WORK AROUND On Windows, reduce the number of bytes transferred at one time. Transferring a smaller number of bytes works even at offsets beyond 2^31-1. ###@###.### 2002-10-28
28-10-2002

EVALUATION The spec allows such transfers to occur in chunks of less than 2^31-1 bytes. The exceptions are bugs that will be addressed in Mantis. ###@###.### 2002-05-24 We can't fix this on Linux in Mantis since some Linux kernels can't do positional writes or truncates beyond 2^31-1. Windows has similiar OS issues with large files and large offsets although transferring a smaller amount of bytes succeeds even at large offsets. ###@###.### 2002-10-28
28-10-2002