| Summary: | ClassCast Exception in table for multivalued attributes shown in a feature column | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Goulwen Le Fur <goulwen.lefur> | ||||||
| Component: | Table | Assignee: | Steve Monnier <steve.monnier> | ||||||
| Status: | CLOSED FIXED | QA Contact: | Florian Barbin <florian.barbin> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | florian.barbin, pierre-charles.david, steve.monnier | ||||||
| Version: | 3.1.0 | Keywords: | triaged | ||||||
| Target Milestone: | 4.0.0M7 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| See Also: |
https://git.eclipse.org/r/69323 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=fe7fc1653ae059b5a970ea501a8059b8b975125e https://git.eclipse.org/r/71449 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=d26c35de7e165ff3576616407ee88bd21c77d913 https://git.eclipse.org/r/71503 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=91288f0904fb9b4958640e20ceebac37a7a0071c |
||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 260448 [details]
Model workspace for sample
New Gerrit change created: https://git.eclipse.org/r/69323 Gerrit change https://git.eclipse.org/r/69323 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=fe7fc1653ae059b5a970ea501a8059b8b975125e The actual bug is fixed, but it's missing clear reproduction steps (for verification purposes) and an automated regression test. New Gerrit change created: https://git.eclipse.org/r/71449 Gerrit change https://git.eclipse.org/r/71449 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=d26c35de7e165ff3576616407ee88bd21c77d913 New Gerrit change created: https://git.eclipse.org/r/71503 Gerrit change https://git.eclipse.org/r/71503 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=91288f0904fb9b4958640e20ceebac37a7a0071c The test TableWithMultivaluedAttributeTest was added to the tests suite. Manual validation steps: - Import the projects from the attachment "Source workspace for sample" - Launch an Eclipse runtime - In this Eclipse runtime, import the project from the attachment "Modelworkspace for sample" - The project is a modeling session named sample that provide a table representation. Open the table and validate that no ClassCastException was raised. Removing "needtest" tag, as the test was merged. Verified on Sirius 4.0.0.RC1 Available in Sirius 4.0.0. |
Created attachment 260447 [details] Source workspace for sample Sirius try to cast List<String> into List<EObject> when a EString[*] attributes is mapped in a Feature Column. java.lang.ClassCastException: java.lang.String cannot be cast to org.eclipse.emf.ecore.EObject at org.eclipse.sirius.table.business.internal.refresh.DTableElementSynchronizerSpec.setLabelWithFeatureValue(DTableElementSynchronizerSpec.java:509) at org.eclipse.sirius.table.business.internal.refresh.DTableElementSynchronizerSpec.refreshLabel(DTableElementSynchronizerSpec.java:483) at org.eclipse.sirius.table.business.internal.refresh.DTableElementSynchronizerSpec.refreshLabel(DTableElementSynchronizerSpec.java:314) at org.eclipse.sirius.table.business.internal.refresh.DTableSynchronizerImpl.refresh(DTableSynchronizerImpl.java:335) at org.eclipse.sirius.table.business.internal.refresh.DTableSynchronizerImpl.fillTableDCell(DTableSynchronizerImpl.java:302)