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 - 5.5 Beta 2 - Surrounding with a try-catch does not set variable to null
Summary: 5.5 Beta 2 - Surrounding with a try-catch does not set variable to null
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-09 15:24 UTC by roridge
Modified: 2010-09-23 08:37 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.