Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 113248 - Assertion failed when deleting a line inside a string concatenation
Summary: Assertion failed when deleting a line inside a string concatenation
Status: RESOLVED DUPLICATE of bug 134227
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-20 11:38 EDT by Olivier Thomann CLA
Modified: 2006-03-31 06:25 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 Olivier Thomann CLA 2005-10-20 11:38:25 EDT
Using I20051018-0932, I got this error:
org.eclipse.jface.text.Assert$AssertionFailedException: Assertion failed:
at org.eclipse.jface.text.Assert.isTrue(Assert.java:189)
at org.eclipse.jface.text.Assert.isTrue(Assert.java:174)
at
org.eclipse.jface.text.rules.FastPartitioner.documentChanged2(FastPartitioner.java:296)
at
org.eclipse.jface.text.AbstractDocument.updateDocumentStructures(AbstractDocument.java:652)
at
org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:751)
at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1112)
at
org.eclipse.jdt.internal.ui.javaeditor.PartiallySynchronizedDocument.replace(PartiallySynchronizedDocument.java:111)
at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1119)
at
org.eclipse.jdt.internal.ui.javaeditor.PartiallySynchronizedDocument.replace(PartiallySynchronizedDocument.java:102)
at
org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:238)
at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5773)
at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6591)
at org.eclipse.swt.custom.StyledText.doDelete(StyledText.java:2664)
at org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:5657)
at org.eclipse.jface.text.TextViewer.doOperation(TextViewer.java:3521)
at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:799)
at
org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1414)
at
org.eclipse.jdt.internal.ui.javaeditor.JavaSourceViewer.doOperation(JavaSourceViewer.java:177)
at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:227)
at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:122)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:120)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:182)
at
org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:108)
at org.eclipse.core.commands.Command.execute(Command.java:311)
at
org.eclipse.core.commands.ParameterizedCommand.execute(ParameterizedCommand.java:401)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:459)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:781)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:828)
at
org.eclipse.ui.internal.keys.OutOfOrderListener.handleEvent(OutOfOrderListener.java:76)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:893)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:917)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:902)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:930)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:926)
at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1525)
at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:3374)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3085)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3910)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1697)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2856)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1763)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1727)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:371)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:375)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338)
at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

I was deleting a line inside a string concatenation. I could not get it twice.
I thought it was worth reporting it anyway.
Comment 1 Tom Hofmann CLA 2005-10-20 13:15:31 EDT
Definitely worth reporting.

The assertion is thrown when the partitioner is called with a different document
than it is connected to, which should not be. 
Comment 2 Dani Megert CLA 2006-03-02 02:31:35 EST
Which VM are you using?
Comment 3 Olivier Thomann CLA 2006-03-02 10:43:55 EST
I am using either a 1.4.2_10 or 1.5.0_06.
Comment 4 Dani Megert CLA 2006-03-31 06:25:17 EST

*** This bug has been marked as a duplicate of 134227 ***