EMFTVM: Problem using EDataType objects as parameter of lazy rules [message #1038834] |
Thu, 11 April 2013 07:59  |
Eclipse User |
|
|
|
Dear all,
I am migrating from ATL "standard VM and compiler" to ATL with the EMFTVM VM and compiler.
In my atl code, I have lazy rules that use objects of metaclass EDataType as parameters. For instance:
lazy rule PropertyAssociationRule {
from
p : AADLI!PropertyAssociation,
referencesOnly:Boolean
...
When running a transformation that invokes this lazy rule, I get the following exception:
java.lang.ClassCastException: org.eclipse.emf.ecore.impl.EDataTypeImpl cannot be cast to org.eclipse.emf.ecore.EClass
at org.eclipse.m2m.atl.emftvm.impl.InputRuleElementImpl.createIterable(InputRuleElementImpl.java:177)
Basically, the reason is that my second parameter (referencesOnly) is not of metaclass EClass but EDataType. Maybe this problem is already addressed but google did not give me much hint after a first try.
I guess that a rapid fix would be to replace the cast to EClass by a cast to EClassifier.
Let me know how if there is an existing release fixing the problem, and how I can get it.
Best regards,
Etienne.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04425 seconds