Re: adding OCL constraint on methods

"Michiel van der Wulp" <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.user
Message-ID <007801c89b26$8c414750$0900000a@athlon64>
Hi Jorge,

> Hello, I am having some problems when trying to add ocl constraints on 
> methods, i can however add without any problem constraints on attributes, 
> why is that?

According to the documentation, you should be able to create constraints for 
Class, Attributes, Operations and Reception.

Our cookbook says:
"Because of a problem with the interpretation of the UML specification and 
the OCL specification, the implementation of constraints in ArgoUML is only 
possible for Classes, Interfaces and Features (Attributes and Operations). 
See  Issue 1805 ."

And issue 1805 gives some background for the reason of this limitation of 
ArgoUML.
http://argouml.tigris.org/issues/show_bug.cgi?id=1805

BUT, since the time that was written, we added support for METHODS (another 
kind of "Feature"), and I guess the support for constraints for methods was 
forgotten.
I see an exception when clicking on the constraints tab with a method 
selected.

This is a bug.
Would you please be so kind to file one in out issue database at:
http://argouml.tigris.org/project_bugs.html

Thanks,
regards,
Michiel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.