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

Bug 326487

Summary: The EMFVM does not support Float. It works only with Double.
Product: [Modeling] MMT.ATL Reporter: El Arbi Aboussoror <aboussoror>
Component: emfvmAssignee: mmt-atl.toolkit-inbox <mmt-atl.toolkit-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dwagelaar, william.piers
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
ATL project none

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.