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