Project: JDT
Bug 139932 [quick assist] Surround with runnable removes semicolon
Reported: 2006-05-03 08:38:25 | Status: verified fixed

3.2. RC2 Given: public void foo() { int i= 10; System.out.println(i); } 1. Select line ' int i= 10;' 2. 'Alt-Shift-Z' 3. Surround with runnable Is: int i; Runnable runnable = new Runnable() { public void run() { i = 10 } }; System.out.println(i); Should: int i; Runnable runnable = new Runnable() { public void run() { i = 10; } }; System.out.println(i);

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/contentassist/SurroundWithTemplateProposal.java