Bug 20714 - UpdateManagerUtils.copyToLocal() not closing output stream
Summary: UpdateManagerUtils.copyToLocal() not closing output stream
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Update (deprecated - use Eclipse>Equinox>p2) (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0.2   Edit
Assignee: Christophe Elek CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-20 09:34 EDT by Vlad Klicnik CLA
Modified: 2002-10-02 15:12 EDT (History)
0 users

See Also:


Attachments
Status when reconciler 'does its job' (23.35 KB, image/gif)
2002-10-02 15:12 EDT, Christophe Elek CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vlad Klicnik CLA 2002-06-20 09:34:21 EDT
If an exception is thrown in the transfer loop, the localContentReferenceStream 
will not be closed. Need a try/catch.

[was not changed at this time because is not stop-ship]
Comment 1 Christophe Elek CLA 2002-09-27 09:42:18 EDT
Replaced by following code


try {
 Utilities.copy(sourceContentReferenceStream,localContentReferenceStream,monitor);
} finally {
 try {
  localContentReferenceStream.close();
 } catch (IOException e){}
}
Comment 2 Christophe Elek CLA 2002-10-02 15:12:50 EDT
Created attachment 2092 [details]
Status when reconciler 'does its job'