Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354152 - isSingleValue does not correctly handle the upperBound "-2"
Summary: isSingleValue does not correctly handle the upperBound "-2"
Status: RESOLVED FIXED
Alias: None
Product: GMF-Tooling
Classification: Modeling
Component: Core (show other bugs)
Version: 2.3.1   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Mickael Istria CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-08 11:12 EDT by Mickael Istria CLA
Modified: 2011-10-12 07:31 EDT (History)
1 user (show)

See Also:


Attachments
Patch (928 bytes, patch)
2011-08-08 11:22 EDT, Mickael Istria CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2011-08-08 11:12:48 EDT
Ecore model generated from XSD have an upperBound set to "-2". GMF does not correctly handle this value and then the isSingleValue helper returns a wrong value, leading to wrong code generated.
Comment 2 Mickael Istria CLA 2011-08-08 11:22:32 EDT
Created attachment 201084 [details]
Patch
Comment 3 Mickael Istria CLA 2011-08-08 12:01:57 EDT
Integration tests + Local test diagram editor working fine.
Committed