Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334417 - Better handling of real number to integer coercion
Summary: Better handling of real number to integer coercion
Status: NEW
Alias: None
Product: AMP
Classification: Modeling
Component: AMF (show other bugs)
Version: 0.9.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Miles Parker CLA
QA Contact: Miles Parker CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-14 14:59 EST by Miles Parker CLA
Modified: 2011-01-14 14:59 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miles Parker CLA 2011-01-14 14:59:56 EST
Currently we do not cover all cases where a real value function result is assigned to an integer attribute. This is not good because it violates the principal that all models which are valid should also produce valid code. We need to either:

a) allow it with an automatic coercion (round down) to an integer. We might want a warning in this case.
b) don't allow it, and add and error in .chk.