[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.mdt.uml2.ocl] Re: OCL in overridden methods

Jürgen,

The generator will only generate an operation implementation if the operation is not already implemented in the base class.  Perhaps in the case of an operation with a body annotation, it should generate it anyway.  You could open a bugzilla feature request for that.  I suppose it would be nice to be able to suppress the operation from the interface since that seems kind of redundant in this type of case...


JG wrote:
Hi,

I have a Method (say, foo()) in a superclass A which should be
overridden in a subclass B of A.
I have specified the method body of foo() in A using OCL, and I get the
OCL code which does what it is expected to do.
Note: I am using Rose for modelling.
When I specify foo() again in B and provide a (different) OCL statement
for its body, I do get the method foo() in the interface B, but I do not
get the Code for foo() in BImpl. What did I do wrong?

Regards

Jürgen