eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

OperationCallExpCS should suppport '::' notation fot static operation #121

Closed eclipse-ocl-bot closed 17 hours ago

eclipse-ocl-bot commented 17 hours ago

| --- | --- | | Bugzilla Link | 164887 | | Status | CLOSED FIXED | | Importance | P3 normal | | Reported | Nov 16, 2006 17:02 EDT | | Modified | May 27, 2011 02:40 EDT | | Version | 1.0.1 | | Reporter | Radomil Dvorak |

Description

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? ')

eclipse-ocl-bot commented 17 hours ago

By Radomil Dvorak on Nov 16, 2006 18:10

I think AttributeCallExpCS involving static attributes also falls into this \ area.\ But it looks like supporting this also in evaluation would require\ extending EvaluationEnvironment interface with something like\ Object evaluate(Object target, EStructuralFeature feature)\ operation, similarly as it is done for operations.

eclipse-ocl-bot commented 17 hours ago

By Christian Damus on Jan 30, 2007 09:48

Regarding comment #1, the new org.eclipse.ocl.EvaluationEnvironment API does implement property calls, and this is used by the org.eclipse.ocl.uml plug-in to support static attribute calls.

eclipse-ocl-bot commented 17 hours ago

By Christian Damus on Feb 02, 2007 15:07

Committed a fix for static operation and attribute calls using '::'. Includes validation that the statically called features are, indeed, static (which is usually applicable only to UML).

eclipse-ocl-bot commented 17 hours ago

By Nick Boldt on Jan 28, 2008 16:36

Move to verified as per bug 206558.

eclipse-ocl-bot commented 17 hours ago

By Ed Willink on May 27, 2011 02:38

Closing after over a year in verified state.

eclipse-ocl-bot commented 17 hours ago

By Ed Willink on May 27, 2011 02:40

Closing after over a year in verified state.