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

Summary: Automatically generate try .. catch block
Product: editor Reporter: tkellerer <tkellerer>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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. ***