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.
Different kinds of projects have different ways of handling exceptions (c.f. issue 116818). We already handle this for the case of NetBeans module projects (where you will get org.openide.util.Exceptions.printStackTrace() rather than a logger call). The JDK logger makes sense for some kinds of projects, but most projects will have their own way of handling exceptions, and the generated code should honor that - in particular, issue 116818 notes that the current generated code is inappropriate for Java ME projects. Exception handling code (and other similar generated code) should be able to be templated as an attribute of the project, customizable within the project properties. Also user-entered templates for such code should be able to be reused for new projects, once entered once, through some kind of project profile or at least a drop-down of known templates used in other projects.