Bug 14493 - Internal Error typing in Text Editor
Summary: Internal Error typing in Text Editor
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 critical (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Kai-Uwe Maetzel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-24 08:44 EDT by Tod Creasey CLA
Modified: 2002-04-30 09:06 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2002-04-24 08:44:32 EDT
Build 20020423
I was editing a comment in the Java Editor and got the error below

STEPS
1)Open JFaceCol,ors
2) Edit the comment in the body of getHyperlinkText (the one about it being 
blue)
3) Error

org.eclipse.jface.util.Assert$AssertionFailedException: assertion failed; 
	at org.eclipse.jface.util.Assert.isTrue(Assert.java(Compiled Code))
	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 Nick Edgar CLA 2002-04-24 09:25:02 EDT
Different code path, same bug?
Comment 2 Igor Fedorenko CLA 2002-04-24 12:22:52 EDT
I've the same error but I was editing java code (not a comment). Here is a very 
simple example. 

package soaptest;
public class Client {
    public static void main(String[] args) {
        String str = "/" <- type here
    }
}

Build 20020423, Win2k SP2, Sun jdk 1.3.1
Comment 3 Kai-Uwe Maetzel CLA 2002-04-30 09:06:26 EDT
Build 20020430.