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 28971 - Automatically generate try .. catch block
Summary: Automatically generate try .. catch block
Status: RESOLVED DUPLICATE of bug 35661
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker with 12 votes (vote)
Assignee: Jan Becicka
URL:
Keywords:
: 12357 20677 30337 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-23 10:09 UTC by tkellerer
Modified: 2007-04-03 18:02 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 tkellerer 2002-11-23 10:09:55 UTC
It would be nice if NB could generate a try ..
catch block with the thrown exceptions around the
selected source code. Something similar to the
synchronize dialog where the user would be asked
if the corresponding try .. catch should be created
Comment 1 Jan Becicka 2004-08-10 17:18:51 UTC
*** Issue 30337 has been marked as a duplicate of this issue. ***
Comment 2 Martin Matula 2004-11-09 18:34:03 UTC
This should be addressed in promoF (NB4.2)
Comment 3 Martin Matula 2004-11-11 16:14:00 UTC
*** Issue 20677 has been marked as a duplicate of this issue. ***
Comment 4 Milan Kubec 2004-11-22 10:45:18 UTC
Such code that is missing try catch block should be marked by error
annotation because such code cannot be compiled.

Is there any chance to have such useful feature sooner than in Promo-F?
Comment 5 Jan Becicka 2005-05-20 09:42:10 UTC
*** Issue 12357 has been marked as a duplicate of this issue. ***
Comment 6 Jan Becicka 2005-05-25 15:31:15 UTC

*** This issue has been marked as a duplicate of 35661 ***
Comment 7 alskor 2005-06-23 10:13:50 UTC
*** Issue 60420 has been marked as a duplicate of this issue. ***