Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329658

Summary: Problem with call with qualified name
Product: [Modeling] Acceleo Reporter: Stephane Begaudeau <stephane.begaudeau>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: laurent.goubet
Version: 3.0.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Screenshot of the problem none

Description Stephane Begaudeau CLA 2010-11-08 03:54:50 EST
Created attachment 182596 [details]
Screenshot of the problem

This works:
[eClass.org::eclipse::acceleo::module::template()/]
[eClass.org::eclipse::acceleo::module::query()/]

this doesn't work:
[org::eclipse::acceleo::module::template()/]
[org::eclipse::acceleo::module::query()/]
[org::eclipse::acceleo::module::template(eClass)/]
[org::eclipse::acceleo::module::query(eClass)/]
Comment 1 Laurent Goubet CLA 2016-03-29 05:06:56 EDT
The OCL specification clearly states that qualified forms can only be used with an explicit source expression; so

[eClass.org::eclipse::acceleo::module::template()/]

is valid, but

[org::eclipse::acceleo::module::template(eClass)/]

is not.
Comment 2 Laurent Goubet CLA 2016-03-29 05:08:13 EDT
For the record, this is stated in section 7.5.6 of the OCL 2.3.1 specification.

"For clarity, the qualified form may only be used with an explicit source expression."