JDK-4614121 : java.io.File.deleteOnExit not working on Windows NT
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 1.1.3,1.4.0,1.4.0_01
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_nt,windows_2000
  • CPU: x86
  • Submitted: 2001-12-14
  • Updated: 2003-01-21
  • Resolved: 2002-02-08
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 Other Other
1.3.1_04 04Fixed 1.4.0_01Fixed 1.4.1Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
###@###.### 2001-12-14

Problem description:
---------------------
Bug4491311 or 4310747 temporary font files not be deleted problem
comes back again which was fixed previously. Now CAP member's app 
is more complex it appears that the temporary file containing a
font loaded dynamically with CreateFont is no longer being deleted.

J2SE Version:
---------------
Merlin beta3(build84) and build88.

Platform information:
----------------------
You can see the temporary file remains in Temp folder on WinNT machine.
For Win2K machine, I can not find any temporary files been created.

Step to reproduces the problem:
--------------------------------

Launch the application running with Java WebStart from the following URL:

http://213.132.42.90/quranonline.htm then click on the Arabic word on the right of the central picture.

When it launches a copy of the font is saved to a temporary file called something like "+~JF25147.tmp" in the Temp folder. When the application quits this temp file should be deleted but it remains there. Tried a simpler application and the problem does not happen.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.3.1_04 1.4.0_01 hopper FIXED IN: 1.3.1_04 1.4.0_01 hopper INTEGRATED IN: 1.3.1_04 1.4.0_01 hopper VERIFIED IN: hopper
14-06-2004

EVALUATION This is a problem with File. Attached is a test case that creates a temporary file and is not deleted upon exit - this used to work in 1.3. ###@###.### 2001-12-17 ==================================== We need to duplicate delete on exit machinery for wide chars. ###@###.### 2002-01-07 ------------------------------------- Bug 4631820 has been raised with a new test case to continue this bug. This has been done because it has been felt that the problem does not relate to the "io" classes and methods. Actually the suspicion is on the deletehooks in the VM. It appears that the VM hooks do not get activated when signals terminate the VM. Rather they are activated only when the VM terminates gracefully. Hence the new bug.
11-06-2004

PUBLIC COMMENTS We have duplicated delete on exit machinery for wide char strings ###@###.### 2002-01-07
07-01-2002