[ATL] Error while copying EEnumLiterals [message #506653] |
Fri, 08 January 2010 09:17 |
RJ 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04271 seconds