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.
If I have a statement that can throw a checked exception, the hinter will suggest that the statement be surrounded in a try-catch. The catch block will typically have the following verbose code in it:- Logger.getLogger(MyClass.class.getName()).log(Level.SEVERE, null, ex); However, I typically have a private static final Logger assigned to each of my classes with the field name 'log'. I would therefore rather that the autogenerated code read (much more tersely) as log.severe(ex); However, there does not appear to be a way to do this at the moment. I request that this be supported.
Good enhancement
This should be solved via Surround with t-c user options. *** This issue has been marked as a duplicate of 133145 ***