Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341877

Summary: Multi-valued attributes: New values not added
Product: [Modeling] EMFT.Henshin Reporter: Bernhard Stadler <bstadler.eclipsebugzilla>
Component: CoreAssignee: Project Inbox <henshin.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Test case
none
Patch none

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.