Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Accessing Data Type Converters (How to create an EDataType instance that is a "Java Long")
icon5.gif  Accessing Data Type Converters [message #986426] Tue, 20 November 2012 06:47 Go to previous message
Jörn Guy  Süss is currently offline Jörn Guy Süss
Messages: 82
Registered: July 2009
Location: Australia
Member

I have an ecore metamodel that defines an EDatatype 'Integer', whose underlying type is a primitive java long. I need to create an instance of this datatype in ATL. The assignment below:

range: UML!MultiplicityRange (
	lower <- 1,
	upper <- -1
)


provokes the following error:

org.eclipse.m2m.atl.engine.emfvm.VMException: java.lang.Integer cannot be cast to java.lang.Long


I believe that I have to call the type conversion or constructor explicitly, but could not find anything in the syntax that allows me to do this.

[Updated on: Tue, 20 November 2012 06:47]

Report message to a moderator

 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:does lazy rules from clause works?
Next Topic:Problem ATL
Goto Forum:
  


Current Time: Fri May 24 01:02:35 EDT 2013

Powered by FUDForum. Page generated in 0.01690 seconds