Bug 205853

Summary: close Closable objects
Product: [Eclipse Project] JDT Reporter: Zohar Amir <david_fire4>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Zohar Amir CLA 2007-10-09 14:34:02 EDT
I have a code segment that does IO operations, and uses Channels to do so. I 
now want to surround this code with try-finally block, to close any open 
channels I have there. For this I need to declare the IO objects outside the 
try block and then, in the finally block, check that they are not null and 
close them.
1. I think not surrounding Closable objects with try-finally in such a way may qualify as a warning
2. There should be a quick fix to do all this.