OclInvalid as method argument [message #33804] |
Wed, 10 May 2006 15:30 |
Eclipse User |
|
|
|
Originally posted by: wojciech.zurek.gmail.com
Hello!
I have recently started using ocl for describing some constraints and
navigating through our EMF models.
My question is about navigation - I have OCL that looks like:
self.process.getObject(self.objectRef.objId)
self has reference to the process, that has method 'getObject' that takes
string which in this case is an attribute objectRef.
Unfortunately when there is no objectRef (the value of objectRef on the self
is null), evaluation visitor is trying to pass OclInvalid as the argument to
'getObject' method - as a result I have a lot of error messages in the log.
I have looked into EvaluationVisitor and it looks like there should be check
if any of the arguments is OclInvalid and return null or OclInvalid from the
method - without reporting this in Eclipse log file.
Am I right with that? (if so I can report defect/supply patch) or I should
rewrite my ocl expression in different way?
Wojciech Zurek
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03460 seconds