Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341877 - Multi-valued attributes: New values not added
Summary: Multi-valued attributes: New values not added
Status: RESOLVED FIXED
Alias: None
Product: EMFT.Henshin
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-05 05:26 EDT by Bernhard Stadler CLA
Modified: 2011-04-05 08:37 EDT (History)
0 users

See Also:


Attachments
Test case (9.99 KB, application/zip)
2011-04-05 05:28 EDT, Bernhard Stadler CLA
no flags Details
Patch (693 bytes, application/octet-stream)
2011-04-05 05:29 EDT, Bernhard Stadler CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Stadler CLA 2011-04-05 05:26:35 EDT
Build Identifier: SVN revision 977

If I apply a transformation system that adds a new value to a multi-valued attribute, that value will not be added, even if the corresponding rule is executed.
I have already spotted the place and will attach a patch.

Reproducible: Always

Steps to Reproduce:
1. Import test project
2. Register model/test.henshin 
Unit MyHenshinTest:mainUnit should, 
for x:X --a--> y:Y --c--> z:Z1 with z:Z1 --bla--> q2:String on the LHS, add x --c--> z, x --blubbla--> q2 and  y --blablubb--> q2 on the RHS.
y.blablubb is a one-valued attribute, x.blubbla is a multi-valued attribute.
3. Apply MyHenshinTest:mainUnit to model/test2b.xmi
Here, among others, x4:X --a--> y3:Y --c--> z3:Z1 --bla--> "dfgh"
Theoretically, this should add x4 --c--> z3, x4 --blubbla--> "dfgh" and y3 --blablub--> "dfgh".
Actually, only x4 --c--> z3 and y3 --blablub--> "dfgh" are added.
Comment 1 Bernhard Stadler CLA 2011-04-05 05:28:03 EDT
Created attachment 192531 [details]
Test case
Comment 2 Bernhard Stadler CLA 2011-04-05 05:29:50 EDT
Created attachment 192532 [details]
Patch

Add new attribute values of multi-valued attributes to added value list.
Comment 3 Enrico Biermann CLA 2011-04-05 08:37:17 EDT
Thanks for the report and patch. Fix applied in SVN revision 981.