Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 179682

Summary: [quick fix] AssertionFailedException logged while editing Java source
Product: [Eclipse Project] JDT Reporter: Gunnar Wagenknecht <gunnar>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Gunnar Wagenknecht CLA 2007-03-28 04:45:37 EDT
eclipse.buildId=I20070323-1616
java.version=1.6.0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments:  -startup D:\Eclipse\3.3-SDK-WTP-current\plugins\org.eclipse.equinox.launcher_1.0.0.v20070319.jar
Command-line arguments:  -os win32 -ws win32 -arch x86 -startup D:\Eclipse\3.3-SDK-WTP-current\plugins\org.eclipse.equinox.launcher_1.0.0.v20070319.jar

Error
Wed Mar 28 10:40:38 CEST 2007
Unhandled event loop exception

org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.core.runtime.AssertionFailedException: assertion failed: )

...
Caused by: org.eclipse.core.runtime.AssertionFailedException: assertion failed:
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:109)
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:95)
at org.eclipse.text.edits.TextEdit.<init>(TextEdit.java:146)
at org.eclipse.text.edits.MultiTextEdit.<init>(MultiTextEdit.java:62)
at org.eclipse.text.edits.CopySourceEdit.performSourceComputation(CopySourceEdit.java:259)
at org.eclipse.text.edits.CopySourceEdit.traverseSourceComputation(CopySourceEdit.java:254)
at org.eclipse.text.edits.TextEditProcessor.computeSources(TextEditProcessor.java:202)
at org.eclipse.text.edits.TextEditProcessor.executeDo(TextEditProcessor.java:185)
at org.eclipse.text.edits.TextEdit.dispatchPerformEdits(TextEdit.java:736)
at org.eclipse.text.edits.TextEditProcessor.performEdits(TextEditProcessor.java:154)
at org.eclipse.ltk.core.refactoring.TextChange.getPreviewDocument(TextChange.java:507)
at org.eclipse.ltk.core.refactoring.TextChange.getPreviewDocument(TextChange.java:376)
at org.eclipse.jdt.internal.ui.text.correction.CUCorrectionProposal.getAdditionalProposalInfo(CUCorrectionProposal.java:171)
at org.eclipse.jface.text.contentassist.AdditionalInfoController$6.run(AdditionalInfoController.java:162)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
... 22 more
Comment 1 Gunnar Wagenknecht CLA 2007-03-28 04:48:43 EDT
I didn't recognized this error. I just found it in the log. However, I remember that I had a problem with a String that I pasted as a constructor argument replacing an existing string. After I pasted it, the String was not colored. Thus, I went back to the line and added a new line and syntax highlighting worked again.
Comment 2 Martin Aeschlimann CLA 2007-03-28 06:57:48 EDT
The stck trace indicates that there was some problem computing the changes for a quick fix. From the stack trace we can;t do much, need the example.
Comment 3 Denis Roy CLA 2009-08-30 02:06:53 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.
Comment 4 Markus Keller CLA 2010-05-09 12:20:11 EDT
To reproduce, use steps from bug 293995 comment 12, and at the end, first resume the main thread and then the worker with the AdditionalInfoController.

Fix (take care that you don't introduce deadlocks on GTK, see bug 293995!!!):
- synchronize ChangeCorrectionProposal#performChange()
- when change has been executed, set fChange= new NullChange()
Comment 5 Eclipse Genie CLA 2020-02-03 13:06:48 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.