Skip to content

Enhance EditingSupport/*CellEditor assertions#4097

Open
akurtakov wants to merge 1 commit into
eclipse-platform:masterfrom
akurtakov:master
Open

Enhance EditingSupport/*CellEditor assertions#4097
akurtakov wants to merge 1 commit into
eclipse-platform:masterfrom
akurtakov:master

Conversation

@akurtakov

@akurtakov akurtakov commented Jun 15, 2026

Copy link
Copy Markdown
Member

When CellEditor used expects different object type, there is assertion message like:

org.eclipse.core.runtime.AssertionFailedException: assertion failed:
    at org.eclipse.core.runtime.Assert.isTrue(Assert.java:121)
    at org.eclipse.core.runtime.Assert.isTrue(Assert.java:106)
    at org.eclipse.jface.viewers.TextCellEditor.doSetValue(TextCellEditor.java:225)
    at org.eclipse.jface.viewers.CellEditor.setValue(CellEditor.java:853)
    at org.eclipse.jface.viewers.EditingSupport.initializeCellEditorValue(EditingSupport.java:102)

which is not really helpful in identifying the exact cause.
Enhance the assertions to give as much information as possible.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   864 files  ±0     864 suites  ±0   45m 46s ⏱️ + 4m 15s
 8 051 tests +1   7 808 ✅ +1  243 💤 ±0  0 ❌ ±0 
20 587 runs  +3  19 932 ✅ +3  655 💤 ±0  0 ❌ ±0 

Results for commit ab2fd41. ± Comparison against base commit 4e89c0c.

When CellEditor used expects different object type, there is assertion
message like:
```
org.eclipse.core.runtime.AssertionFailedException: assertion failed:
    at org.eclipse.core.runtime.Assert.isTrue(Assert.java:121)
    at org.eclipse.core.runtime.Assert.isTrue(Assert.java:106)
    at org.eclipse.jface.viewers.TextCellEditor.doSetValue(TextCellEditor.java:225)
    at org.eclipse.jface.viewers.CellEditor.setValue(CellEditor.java:853)
    at org.eclipse.jface.viewers.EditingSupport.initializeCellEditorValue(EditingSupport.java:102)
    ```

which is not really helpful in identifying the exact cause.
Enhance the assertions to give as much information as possible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant