| Summary: | ClassCastException on semantic update | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Esteban DUGUEPEROUX <esteban.dugueperoux> | ||||
| Component: | Diagram | Assignee: | Maxime Porhel <maxime.porhel> | ||||
| Status: | CLOSED FIXED | QA Contact: | Julien Dupont <julien.dupont> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | florian.barbin, frederic.madiot, julien.dupont, lengyela89, maxime.porhel, pierre-charles.david | ||||
| Version: | 3.1.0 | Keywords: | triaged | ||||
| Target Milestone: | 4.1.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| See Also: |
https://git.eclipse.org/r/63855 https://git.eclipse.org/r/69321 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=2ac89a3aecf989a2dd70b9ef27c1ed86e4b47735 |
||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 499928, 500124 | ||||||
| Attachments: |
|
||||||
|
Description
Esteban DUGUEPEROUX
Created attachment 259082 [details]
Sample project to reproduce
I have no determinist scenario, sometimes I get it on odesign update.
New Gerrit change created: https://git.eclipse.org/r/63855 *** Bug 489190 has been marked as a duplicate of this bug. *** Hi, I ran into the same problem in the following way: I'm working on a Sirius diagram editor for the language of EMF-IncQuery (https://projects.eclipse.org/projects/modeling.incquery). This project has been merged to VIATRA project, but documentation for the language can be found here: http://wiki.eclipse.org/VIATRA/Query/UserDocumentation/QueryLanguage How I found the bug: - I created a valid model with the XText Editor belongs to the EMF-IncQuery's language - I created a Sirius diagram for this model, and opened it (until this point everything is fine) (note that at this time I have an XText editor and a Sirius diagram opened at the same time on the same file) - I modify the model with the XText editor (after the modification the model is valid), and save - After that, the Sirius reloads the model, and refreshes the diagram. During this phase I get a ClassCastException, because the "editor" variable I mentioned in this (https://bugs.eclipse.org/bugs/show_bug.cgi?id=489190) bug refers to an XTextEditor. Unfortunately I can't attach an example where you can check this bug currently, but as soon as possible I will send one. Hope I could help you something. Regards, Adam Gerrit change https://git.eclipse.org/r/69321 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=2ac89a3aecf989a2dd70b9ef27c1ed86e4b47735 Probably fixed by 2ac89a3aecf989a2dd70b9ef27c1ed86e4b47735, but we don't have a reproduction scenario, so not closing for now. See Bug 499928 created by Fred. I reproduce the ClassCast on Sirius 4.0 but not with master for 4.1. I will not close Bug 499928 as duplicate but keep it for backport on 4.0.0. *** Bug 499928 has been marked as a duplicate of this bug. *** Resolved by commit 2ac89a3aecf989a2dd70b9ef27c1ed86e4b47735. See Bug 499928 for reproduction/validation scenario Available in Sirius 4.1.0, see https://wiki.eclipse.org/Sirius/4.1.0 for details. |