Summary: | [misc] AssertionFailedException when replacing text | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [WebTools] WTP Source Editing | Reporter: | Natalia Bartol <natalia.bartol> | ||||||
Component: | wst.sse | Assignee: | wst.sse <wst.sse-inbox> | ||||||
Status: | NEW --- | QA Contact: | Nick Sandonato <nsand.dev> | ||||||
Severity: | normal | ||||||||
Priority: | P3 | CC: | nsand.dev | ||||||
Version: | unspecified | Keywords: | needinfo | ||||||
Target Milestone: | --- | ||||||||
Hardware: | PC | ||||||||
OS: | Windows 7 | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Natalia Bartol
2012-02-13 12:36:01 EST
Created attachment 210928 [details]
AssertionFailedException caught
I think that offset < 0 which causes AssertionFailedException in TypedPosition constructor has the same cause as possible BadLocatioException: concurrent threads modifying document. As BadLocationException is caught in org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler.InternalListener.documentAboutToBeChanged(DocumentEvent e) what about catching there AssertionFailedException as well?
Created attachment 210930 [details]
AssertionFailedException caught
Hi Natalia, Thank you for the patch. I'd like to understand the problem first so that maybe we can fix the cause of this instead of suppressing the exception. Can you provide a testcase or some steps to reproduce the problem? Thanks! Comment on attachment 210930 [details]
AssertionFailedException caught
As stated, I think the best course of action would be to find out the root of this problem. Thank you for the patch, though.
|