[invalid] Sirius uses base class instead of derived [message #1410247] |
Wed, 20 August 2014 07:46 |
Christian Pontesegger Messages: 250 Registered: July 2009 Location: Graz, Austria |
Senior Member |
|
|
My model defines an abstract "Base" class along with several implementation classes A, B, C. Base defines a method foo() which throws an UnsupportedOperationException. The implementation of that method is done in the derived classes.
Now with sirius I created a new Node element for domain class model.Base. My label expression is [thisEObject.foo()/] but instead of using foo() implementations of A,B,C Sirius calls Base.foo() which throws an exception.
Why is Sirius using the base implementation instead of the derived one? Is there a way to avoid this behavior?
[Updated on: Wed, 20 August 2014 07:55] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03164 seconds