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

Bug 334417

Summary: Better handling of real number to integer coercion
Product: [Modeling] AMP Reporter: Miles Parker <milesparker>
Component: AMFAssignee: Miles Parker <milesparker>
Status: NEW --- QA Contact: Miles Parker <milesparker>
Severity: normal    
Priority: P3    
Version: 0.9.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.