|[Acceleo] - Problem with types invoking Java Wrappers [message #686425]
||Wed, 22 June 2011 08:24
Registered: June 2011
I have worked with Acceleo for the last month and I'm satisfied with the tool. However, I have a problem I don't know how to solve it.
I have created a Java Wrapper, and it receives as parameter a domain class (csp.Constraint) of an ecore project. But it produces an exception when i invoke it from acceleo code.
I have tried to change the type to EObject, an then it works. However, the object received is a DynamicEObjectImpl, and when i try to cast to csp.Constraint, I obtain a ClassCastException.
I have read that I need to invoke MyPackage.eINSTANCE.getClass() to force the load, but i receive also an exception:
org.eclipse.emf.ecore.impl.EFactoryImpl cannot be cast to csp.CSPFactory
Thanks in advance.
Powered by FUDForum
. Page generated in 0.01748 seconds