Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313698

Summary: ArchiveURLConnection does not clean up temp files
Product: [Modeling] EMF Reporter: Simon Goodall <simon.goodall>
Component: CoreAssignee: Ed Merks <Ed.Merks>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Simon Goodall CLA 2010-05-20 07:16:02 EDT
Build Identifier: 20100218-1602

I'm using the ArchiveURIHandlerImpl to manage EMF models stored within a zip file. When performing IO ops on the archive I end up with many temporary files which are not cleaned up.

This appears to be caused by ArchiveURLConnection.getOutputStream(boolean, long) creating a temp file, but not removing it or marking it for deleteOnExit().



Reproducible: Always
Comment 1 Ed Merks CLA 2010-05-20 09:02:27 EDT
A fix has been committed to CVS for 2.6.
Comment 2 Ed Merks CLA 2010-06-11 19:12:16 EDT
The fix is available in 2.6 RC4.