JDK-6541631 : (fc) java/nio/channels/FileChannel/LongTransferTest.java should clean up after itself
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2007-04-02
  • Updated: 2010-04-02
  • Resolved: 2008-07-05
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.
JDK 7
7 b31Fixed
Related Reports
Relates :  
Relates :  
Description
LongTransferTest.java creates test files in "java.io.tmpdir".  It calls
delete() on them, but since the files are still open this has no effect
on Windows. (see product bugs 4171239, 4205562)

 $ pwd
/c/TEMP
 $ ls -l Lo*
-rwxrwxrwx  1 otto None  0 Apr  1 06:12 LongTransferTest_channelTestInFile_tmp
-rwxrwxrwx  1 otto None 10 Apr  2 05:16 LongTransferTest_channelTestOutFile_tmp

Comments
EVALUATION channel needs to be closed before delete the underlying file.
27-06-2008