Bug 112048 - [quick fix] support for try-finally
Summary: [quick fix] support for try-finally
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: Other Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-09 04:23 EDT by Timo Nentwig CLA
Modified: 2009-01-23 11:33 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Nentwig CLA 2005-10-09 04:23:34 EDT
I'd like to suggest a third exception handling quick-fix: try-finally.  
  
public void foo throw BarException  
{  
  try 
  { 
    methodThatThrowsBarException(); 
  } 
  finally 
  { 
    // stub 
  }  
}
Comment 1 Martin Aeschlimann CLA 2005-10-10 03:56:32 EDT
Can you please explain more. Is this given source before or after the quick fix.
What would the quick fix do?
Comment 2 Timo Nentwig CLA 2005-10-10 17:12:18 EDT
After, of course. This is what the code would look like before the quick fix: 
 
public void foo 
{   
    methodThatThrowsBarException();  
}