Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326487 - The EMFVM does not support Float. It works only with Double.
Summary: The EMFVM does not support Float. It works only with Double.
Status: CLOSED FIXED
Alias: None
Product: MMT.ATL
Classification: Modeling
Component: emfvm (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: mmt-atl.toolkit-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-29 03:37 EDT by El Arbi Aboussoror CLA
Modified: 2017-06-05 09:06 EDT (History)
2 users (show)

See Also:


Attachments
ATL project (12.32 KB, application/octet-stream)
2010-09-29 03:44 EDT, El Arbi Aboussoror CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description El Arbi Aboussoror CLA 2010-09-29 03:37:58 EDT
Build Identifier: 20100218-1602

I had this problem within a helper :

helper def : getHeightForCube() : Real =
    thisModule.allCubes
    -> collect(c | c.capacity)
    -> iterate(e; res : Real = thisModule.allCubes.first().capacity |
            e.max(res)
            );

The property "capacity" is of type EFloat.

The execution raises this error :
org.eclipse.m2m.atl.engine.emfvm.VMException: Operation not found: 1.0.max(java.lang.Float)


Reproducible: Always

Steps to Reproduce:
1. use 'max' or '>' operation on a Real variable and a Efloat property (from the metamodel)
Comment 1 El Arbi Aboussoror CLA 2010-09-29 03:44:00 EDT
Created attachment 179810 [details]
ATL project

The helper with the bug is in the AutoLayout.atl transformation..
Comment 2 William Piers CLA 2011-05-10 11:29:42 EDT
This bug has been fixed on CVS HEAD. The fix will be included in the next ATL 3.2 build (ATL 3.2.0RC1, May 17). Thanks for the test case !
Comment 3 Dennis Wagelaar CLA 2017-06-05 09:06:32 EDT
This was released for ATL 3.2 - closing.