Bug 14571 - Assertion failed error in Java Editor
Summary: Assertion failed error in Java Editor
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kai-Uwe Maetzel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-24 20:03 EDT by Jeff Brown CLA
Modified: 2002-04-29 10:55 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Brown CLA 2002-04-24 20:03:28 EDT
I get the following error randomly while editing a Java file
in the Java editor immediately after any keypress.  Once it gets
in this state, any keypress will cause it to happen.  Closing
the file and reopening it (or restarting Eclipse) usually fixes
the problem temporarily, but sometimes not and the error occurs on
the next keypress.

The error occurs even if "highlight problems" is disabled.

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(Compiled Code))
	at org.eclipse.jface.text.Position.<init>(Position.java:52)
	at org.eclipse.jface.text.rules.DefaultPartitioner.computePartitioning
(DefaultPartitioner.java:406)
	at org.eclipse.jface.text.AbstractDocument.computePartitioning
(AbstractDocument.java:672)
	at 
org.eclipse.jface.text.presentation.PresentationReconciler.createPresentation
(PresentationReconciler.java:312)
	at 
org.eclipse.jface.text.presentation.PresentationReconciler.processDamage
(PresentationReconciler.java:417)
	at org.eclipse.jface.text.presentation.PresentationReconciler.access$5
(PresentationReconciler.java:415)
	at 
org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.text
Changed(PresentationReconciler.java:150)
	at org.eclipse.jface.text.TextViewer.updateTextListeners
(TextViewer.java:1413)
	at org.eclipse.jface.text.TextViewer$DocumentListener.documentChanged
(TextViewer.java:276)
	at org.eclipse.jface.text.AbstractDocument.fireDocumentChanged
(AbstractDocument.java:527)
	at org.eclipse.jface.text.AbstractDocument.replace
(AbstractDocument.java:819)
	at org.eclipse.jface.text.DocumentAdapter.replaceTextRange
(DocumentAdapter.java:136)
	at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5111)
	at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:5814)
	at org.eclipse.swt.custom.StyledText.doBackspace(StyledText.java:2127)
	at org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:4997)
	at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:4609)
	at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:4581)
	at org.eclipse.swt.custom.StyledText$8.handleEvent(StyledText.java:4326)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:816)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:643)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:195)
	at org.eclipse.core.launcher.Main.run(Main.java:541)
	at org.eclipse.core.launcher.Main.main(Main.java:396)
Comment 1 Kai-Uwe Maetzel CLA 2002-04-29 10:55:24 EDT
Build 20020425.