Comparing Large Numbers Fails with ATL 3.2.1 [message #901977] |
Wed, 15 August 2012 07:38  |
Eclipse User |
|
|
|
Hi,
I have a helper that does some range checking to determine appropriate datatypes. The helper works in ATL 3.1.1 but causes a compile time exception in ATL 3.2.1 now.
For example I do the following in a helper:
helper def : getTypeByRange(range : X!RangeType) : String =
if(range.min.toReal() >= 0 and range.max.toReal() <= 4294967290.longValue())
then
'UInt32'
else
'UInt64'
endif
This causes the following upon saving the ATL.
org.eclipse.m2m.atl.engine.emfvm.VMException: Unable to access feature on OclUndefined
at __matchHelperSignatureIsUnique#21(ATL_WFR.atl[456:34-456:54])
local variables: self=ATL_WFR : ASMModule, s=IN!<unnamed>, e=IN!<unnamed>
at __matcher__#7(ATL_WFR.atl)
local variables: self=ATL_WFR : ASMModule
at main#163(ATL_WFR.atl)
local variables: self=ATL_WFR : ASMModule
Note that I used .longValue() to get this working nicely in ATL 3.1.1
Any ideas?
Ronan
|
|
|
|
Powered by
FUDForum. Page generated in 0.24400 seconds