Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Error while copying EEnumLiterals
[ATL] Error while copying EEnumLiterals [message #506653] Fri, 08 January 2010 09:17 Go to next message
RJ is currently offline RJFriend
Messages: 19
Registered: October 2009
Location: Eindhoven, The Netherland...
Junior Member
Hi all,

I'm still busy with copying one metamodel to another metamodel (with the Ecore model as meta-metamodel). I now get a weird error while copying EEnumLiterals's. My code is as follows:

rule copyEEnumLiteralLib{
	from
		a : MM1!EEnumLiteral
	to
		p : MM2!EEnumLiteral(
			eAnnotations <- a.eAnnotations,
			instance <- a.instance,
			literal <- a.literal,
			name <- a.name,
			value <- a.value
		)
}


where both MM1 and MM2 are the ecore metamodel (platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore). No fancy code, I just copy everything from one model to another.

I now get the following error:

org.eclipse.m2m.atl.engine.emfvm.VMException: org.eclipse.m2m.atl.engine.emfvm.lib.EnumLiteral cannot be cast to org.eclipse.emf.common.util.Enumerator
	at __applycopyEEnumLiteralLib(merge.atl[446:4-446:26])
		local variables: self=thisModule, link=org.eclipse.m2m.atl.engine.emfvm.lib.TransientLink@4daf4a, a=Library!I:MM1!EEnumLiteral, p=InstMM!<unnamed>:MM1!EEnumLiteral
	at __exec__(merge.atl)
		local variables: self=thisModule, e=org.eclipse.m2m.atl.engine.emfvm.lib.TransientLink@4daf4a
	at main(merge.atl)
		local variables: self=thisModule


does anyone have any idea where this comes from?

Thanks already,
- RJ
Re: [ATL] Error while copying EEnumLiterals [message #513448 is a reply to message #506653] Wed, 10 February 2010 09:32 Go to previous message
RJ is currently offline RJFriend
Messages: 19
Registered: October 2009
Location: Eindhoven, The Netherland...
Junior Member
Anyone? It works when I comment out the "instance <- a.instance," part, but that's of course not a healthy solution.
Previous Topic:[QVTO] trace file
Next Topic:[Announce] Eclipse/OMG Symposium 2010
Goto Forum:
  


Current Time: Fri Apr 19 20:27:28 GMT 2024

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

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

Back to the top