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

Bug 344037

Summary: Support for duplicates in attribute value lists
Product: [Modeling] Edapt Reporter: Markus Herrmannsdoerfer <herrmama>
Component: CoreAssignee: Markus Herrmannsdoerfer <herrmama>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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.