Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Comparing Large Numbers Fails with ATL 3.2.1(Large number comparison worked in ATL 3.1.1 but fails in 3.2.1)
Comparing Large Numbers Fails with ATL 3.2.1 [message #901977] Wed, 15 August 2012 11:38 Go to next message
Ronan B is currently offline Ronan BFriend
Messages: 273
Registered: July 2009
Senior Member
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
Re: Comparing Large Numbers Fails with ATL 3.2.1 [message #1060669 is a reply to message #901977] Mon, 27 May 2013 15:57 Go to previous message
Ronan B is currently offline Ronan BFriend
Messages: 273
Registered: July 2009
Senior Member
Hi,
In case anyone is interested there is a solution to this in Bugzilla, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=390548.
Regards,
Ronan
Previous Topic:XML2XML
Next Topic:many attributes Source en one target attribute
Goto Forum:
  


Current Time: Tue Apr 23 16:45:07 GMT 2024

Powered by FUDForum. Page generated in 0.02852 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top