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 136402

Summary: Surround with try-catch imports java.util.logging
Product: java Reporter: aldobrucale <aldobrucale>
Component: EditorAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description aldobrucale 2008-06-03 17:35:58 UTC
The body of the catch statement generated by "Surround with try-catch" refers to java.util.logging - this is rather
annoying for those who use other logging APIs. I think that the ide should either create a catch block which doesn't
cause alien imports or allow the user to customize it.
Comment 1 Jiri Prox 2008-06-04 08:11:04 UTC
This is rather an enhancement and duplicate of issue 133145.

Anyway, the surround with t/c can be customized a little bit in Options->Java Code->Hints->Error Fixes. At least is
allows to use ex.printStackTrace(); which does not add any import.

*** This issue has been marked as a duplicate of 133145 ***