This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 82291

Summary: 5.5 Beta 2 - Surrounding with a try-catch does not set variable to null
Product: java Reporter: roridge <roridge>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description roridge 2006-08-09 15:24:58 UTC
Using SHIFT-ALT-W surrounds a block of code with a try-catch for the appropriate
Exception. It's clever in the way that it will extract any declaration and place
it before the try-catch block.

However, it does not implicitly set local variables to null, rather NB will
throw another syntax error/warning requesting (rightly so) that this is done.

It would be nice if it did this, please? :)
Thanks
Rory
Comment 1 roridge 2006-08-09 15:27:30 UTC
sorry, in NB 5.5 Beta 2
Comment 2 Miloslav Metelka 2006-10-17 21:29:57 UTC
Reassigning to java for evaluation.