Project: JDT
Bug 55347 Surround with try/catch QF corrupts code
Reported: 2004-03-19 06:30:27 | Status: resolved fixed

I20040318 With this code: import java.io.*; public class EF { public static void foo() throws IOException { InputStream is= null; if (is != null) { is.close(); } } } - select the full line containing the "close" - press Command-1 for QF - select surround with try/catch Observe: corrupted code import java.io.*; public class EF { public static void foo() throws IOException { InputStream is= null; if (is != null) { try { is.close(); } } catch (Exception e) { // TODO: handle exception } } }

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/QuickTemplateProcessor.java