Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 267033 - [Xtend] EClassType das not support setter for multi value EDataTypes
Summary: [Xtend] EClassType das not support setter for multi value EDataTypes
Status: CLOSED FIXED
Alias: None
Product: M2T
Classification: Modeling
Component: Xpand (show other bugs)
Version: 0.7.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-04 10:17 EST by Heiko Behrens CLA
Modified: 2013-02-21 08:10 EST (History)
1 user (show)

See Also:
Heiko.Behrens: galileo+


Attachments
Patch including test and fix (5.36 KB, patch)
2009-03-04 10:18 EST, Heiko Behrens CLA
sven.efftinge: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Behrens CLA 2009-03-04 10:17:31 EST
For cases when an EClass is adapted by the EMFMetaModel setting the value of a property fails when this property is
 * multivalue
 * of type EDataType and descendants (e.g. EString)

Seems to be a migration error from oAW 4.3 code base.

Please find attached a patch containing a test case as well as a fix.
Comment 1 Heiko Behrens CLA 2009-03-04 10:18:48 EST
Created attachment 127484 [details]
Patch including test and fix
Comment 2 Sven Efftinge CLA 2009-03-05 05:26:52 EST
Are you sure it works in oAW 4.3.1 like you said?

One should modify structural features with upperBound = -1 like using the getter in combination with 'add'. Like so:

myInstance.manyActions.add("Foo")

I've added a test and fixed the code so that no setter operation is created for toMany features any more. 

Does this work for you? 
Comment 3 Karsten Thoms CLA 2013-02-21 08:10:44 EST
Bug resolved before Xpand 1.2 release date => Closing