Project: JDT
Bug 24674 "try" template should use printStackTrace()
Reported: 2002-10-10 17:23:11 | Status: resolved fixed

By default the "try" template is defined as: try { ${cursor} } catch (${Exception} e) { } It should probably use printStackTrace(), for example: try { ${cursor} } catch (${Exception} e) { e.printStackTrace(); } When you are not sure how to handle an exception, sending printStackTrace() is a useful best practice. Failing to do this causes thrown exception to be masked.

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContextType.java