[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.mdt.uml2.ocl] Calling static operations in OCL

Hi,

When trying to parse operation call expression that invokes a static 
operation,

    myPackage::MyClass::operation()

I get the following error:
    1:19:1:20 "+" expected instead of "::"
(I would rather expect something like "(Cannot find operation (operation())" 
here.)

The OCL 2.0 spec mentions the following rule for this case.
[G] OperationCallExpCS ::= pathNameCS '(' argumentsCS? ')

Keeping in mind that the 'Concrete Syntax' part of the spec is a bit 
outdated,
I am asking this in the newsgroup first, before raising a bug.

Clearly, using a static operation does not make much sense if the target 
metamodel is 'ecore'.
However, when targeting for instance UML metamodel, it could be useful.
Also custom Environments supporting java <<utility>> classes would benefit 
from this.

Regards,
/Radek