Community
Participate
Working Groups
Build 20020326 Sorry no steps to reproduce. org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.jface.util.Assert$AssertionFailedException: assertion failed; ) at org.eclipse.swt.SWT.error(SWT.java:1887) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:96) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1397) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1211) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:755) at org.eclipse.ui.internal.Workbench.run(Workbench.java:738) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:14) *** Stack trace of contained exception *** org.eclipse.jface.util.Assert$AssertionFailedException: assertion failed; at org.eclipse.jface.util.Assert.isTrue(Assert.java:162) at org.eclipse.jface.util.Assert.isTrue(Assert.java:148) at org.eclipse.jface.text.Position.<init>(Position.java:52) at org.eclipse.jdt.internal.ui.javaeditor.ProblemPosition.<init> (ProblemPosition.java:23) at org.eclipse.jdt.internal.ui.javaeditor.ProblemPainter.setProblems (ProblemPainter.java:63) at org.eclipse.jdt.internal.ui.javaeditor.ProblemPainter.updateProblems (ProblemPainter.java:73) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$3.run (CompilationUnitEditor.java:1245) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:29) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:93) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1397) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1211) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:755) at org.eclipse.ui.internal.Workbench.run(Workbench.java:738) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:14)
The problem indicates that the core delivered an IProblem with a negative length. Introduced guard code that sets the length to 0 in this case. Moving to JDT core for investigation.
We have several hundred different problems, so will wait for a test case before taking further action.
Found a test case: [ package p5; import p3.Z; public class U extends { } ]
Due to bug 12674, some extra problems were found, from the source type converter generated ASTs, where type reference source end could be incorrect. Fixed both issues.