Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344037 - Support for duplicates in attribute value lists
Summary: Support for duplicates in attribute value lists
Status: RESOLVED FIXED
Alias: None
Product: Edapt
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: ---   Edit
Assignee: Markus Herrmannsdoerfer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-27 15:44 EDT by Markus Herrmannsdoerfer CLA
Modified: 2011-04-27 15:54 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Herrmannsdoerfer CLA 2011-04-27 15:44:16 EDT
If a metamodel contains an attribute that is multi-valued and not unique and a
model has duplicates in the values of the attribute, then the following
exception is thrown during migration:

java.lang.IllegalArgumentException: The 'no duplicates' constraint is violated
Comment 1 Markus Herrmannsdoerfer CLA 2011-04-27 15:54:49 EDT
Uniquenss of AttributeSlot.values has to be dropped to avoid this issues.
However, uniqueness should be reflectively enforced by the add-methods. A test
has been added to verify the correctness of this bug fix.