Issue 12184: Section: 7.2, 7.3, A3 OCLExpression (mtt-ftf) Source: (, ) Nature: Revision Severity: Minor Summary: Title: OCLExpression doesn't support the plus operator for string concatenations Message: The OCL specification defines (see 7.4: Basic Values and Types, page 10) the number of operations on the predefined types. The string type supports the concat, substring and size operations, but the plus operator is only used in integer types. The Mof2Text specification uses the plus operator to concatenate strings, and it's an error. Here there are some examples: 1. 7.2 Traceability --> [trace (c.id + '_definition') ] 2. 7.3 Directing Output to Files --> [file ('file:\\' + c.name + '.java', false, c.id + 'impl')] 3. A.3 Example 3 --> [file (c.name + '.cpp', false)] [trace (c.id + '.header')] Resolution: Revised Text: Actions taken: January 16, 2008: received issue Discussion: End of Annotations:===== m: webmaster@omg.org Date: 16 Jan 2008 05:36:58 -0500 To: Subject: Issue/Bug Report -------------------------------------------------------------------------------- Name: Nuria Tejera Company: OpenCanarias mailFrom: netverde@opencanarias.com Notification: Yes Specification: mtt-ftf Section: 7.2, 7.3, A3 FormalNumber: ptc/07-08-16 Version: 1.0 RevisionDate: 07-08-16 Page: 9, 10 Nature: Revision Severity: Minor HTTP User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Description Title: OCLExpression doesn't support the plus operator for string concatenations Message: The OCL specification defines (see 7.4: Basic Values and Types, page 10) the number of operations on the predefined types. The string type supports the concat, substring and size operations, but the plus operator is only used in integer types. The Mof2Text specification uses the plus operator to concatenate strings, and it's an error. Here there are some examples: 1. 7.2 Traceability --> [trace (c.id + '_definition') ] 2. 7.3 Directing Output to Files --> [file ('file:\\' + c.name + '.java', false, c.id + 'impl')] 3. A.3 Example 3 --> [file (c.name + '.cpp', false)] [trace (c.id + '.header')]