Community
Participate
Working Groups
I20070828-0800, same problem in 3.3 Content assist where indicated below does not work (in a plug-in project with SWT on the classpath). But when I remove either the "shell.addControlListener..." or the "while..." statement, it works as expected. Nothing in the log. Veeery strange! import org.eclipse.swt.*; import org.eclipse.swt.events.*; import org.eclipse.swt.widgets.*; public class Try { void main(Shell shell) { final Label label= new Label(shell, SWT.WRAP); label.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { e.gc.setLineCap(SWT.CAP_); // content assist after CAP_ } }); shell.addControlListener(new ControlAdapter() { }); while (!shell.isDisposed()) { } } }
Created attachment 140359 [details] Proposed fix Content assist was fixed by a previous fix but the recovered ast is not correct. With this patch the recovered ast will be correct. The closing braces after a statement are not correctly recovered.
Released for 3.6M1. Tests added DietRecoveryTest#test127() -> test128() CompletionRecoveryTest#test26() CompletionTests#test201762()
Verified for 3.6M1 using I20090802-2000