Bug 12373 - Assert$AssertionFailedException error while reconciling
Summary: Assert$AssertionFailedException error while reconciling
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-27 13:30 EST by Philipe Mulet CLA
Modified: 2002-04-03 08:01 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2002-03-27 13:30:31 EST
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)
Comment 1 Kai-Uwe Maetzel CLA 2002-04-02 09:09:16 EST
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.
Comment 2 Philipe Mulet CLA 2002-04-02 12:13:10 EST
We have several hundred different problems, so will wait for a test case before 
taking further action. 
Comment 3 Philipe Mulet CLA 2002-04-03 06:26:07 EST
Found a test case:

[
package p5;

import p3.Z;

public class U extends {

}
]
Comment 4 Philipe Mulet CLA 2002-04-03 08:01:51 EST
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.