Issue 19022: ObjectExp Abstract Syntax misses a ConstructorBody (qvt-rtf) Source: Open Canarias, SL (Mr. Adolfo Sanchez-Barbudo Herrera, nobody) Nature: Revision Severity: Significant Summary: Problem: ObjectExp enhances an InstationExp with additional abstract syntax and semantics what respect to the association of the object to be created/updated to a variable. Likewise, the object expression provides concrete syntax to specify the set of expressions to be executed in order to intialize/update the properties of the object to be created. However this is not reflected in the abstract sytanx. Discussion: Indeed, ObjectExp should contain a containment reference to comprise the block of expressions used to initialize/update the object properties. The best AS candidate is ConstructorBody. Note that this is supported by the own description of the ConstructorBody (section 8.2.1.18): "A constructor body contains the implementation of a constructor operation or the implementation of an inline constructor (see ObjectExp)." This ConstructorBody should be optional, as a result of an enhancement I'll raise in a different issue. Proposed resolution: Add the following association to ObjectExp in section 8.2.1.24 body: ConstructorBody [0..1] {composes} The object expression body comprising the expressions to initialize (or update) the properties of the object to be instantiated (or updated). Resolution: The required association is already shown in Fig 8.3; just need to add the missing text Revised Text: In 8.2.1.24 ObjectExp add body: ConstructorBody [1] {composes} The inline constructor body for the object to be instantiated or updated Actions taken: October 23, 2013: received issue July 15, 2014: closed issue Discussion: End of Annotations:===== m: webmaster@omg.org Date: 23 Oct 2013 07:31:33 -0400 To: Subject: Issue/Bug Report ******************************************************************************* Name: Adolfo Sáhez-Barbudo Herrera Employer: The University of York mailFrom: asbh500@york.ac.uk Terms_Agreement: I agree Specification: Meta Object Facility (MOF) 2.0 Query/View/Transformation (QVT) Section: 8.2.1.24 FormalNumber: formal-11-01-01 Version: 1.1 Doc_Year: 2011 Doc_Month: January Doc_Day: 01 Page: 102 Title: ObjectExp Abstract Syntax misses a ConstructorBody Nature: Revision Severity: Significant CODE: 3TMw8 B1: Report Issue Remote Name: wc12.york.ac.uk Remote User: HTTP User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36 Time: 07:31 AM Description: Problem: ObjectExp enhances an InstationExp with additional abstract syntax and semantics what respect to the association of the object to be created/updated to a variable. Likewise, the object expression provides concrete syntax to specify the set of expressions to be executed in order to intialize/update the properties of the object to be created. However this is not reflected in the abstract sytanx. Discussion: Indeed, ObjectExp should contain a containment reference to comprise the block of expressions used to initialize/update the object properties. The best AS candidate is ConstructorBody. Note that this is supported by the own description of the ConstructorBody (section 8.2.1.18): "A constructor body contains the implementation of a constructor operation or the implementation of an inline constructor (see ObjectExp)." This ConstructorBody should be optional, as a result of an enhancement I'll raise in a different issue. Proposed resolution: Add the following association to ObjectExp in section 8.2.1.24 body: ConstructorBody [0..1] {composes} The object expression body comprising the expressions to initialize (or update) the properties of the object to be instantiated (or updated).