Issue 8267: MOF 2 Core: undefined behavior of convertToString (mof2core-rtf) Source: Adaptive (Mr. Pete Rivett, pete.rivett(at)adaptive.com) Nature: Uncategorized Issue Severity: Summary: Section 9.1 of ptc/04-10-15 defines operation convertToString that takes an Object parameter and converts to a string representation for a supplied DataType. However no exception is defined for when the supplied Object is an instance of a ModelElement and not a DataType. Resolution: see below Revised Text: Replace the following sentence in section 9.2 for convertToString(): Exception: IllegalArgumentException if datatype is not a member of the package returned by getPackage(). By Exception: IllegalArgumentException if datatype is not a member of the package returned by getPackage() or the supplied object is not a valid instance of that datatype. Actions taken: February 11, 2005: received issue April 25, 2011: closed issue Discussion: End of Annotations:===== ubject: MOF 2 Core: undefined behavior of convertToString Date: Fri, 11 Feb 2005 05:49:53 -0500 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: MOF 2 Core: undefined behavior of convertToString Thread-Index: AcUQJX5Ih5caXpnITdSfseJ9cDt3tg== From: "Pete Rivett" To: X-Virus-Scanned: by amavisd-new at sentraliant.com Section 9.1 of ptc/04-10-15 defines operation convertToString that takes an Object parameter and converts to a string representation for a supplied DataType. However no exception is defined for when the supplied Object is an instance of a ModelElement and not a DataType. Pete Rivett (mailto:pete.rivett@adaptive.com) CTO, Adaptive Inc. Dean Park House, 8-10 Dean Park Crescent, Bournemouth, BH1 1HL, UK Tel: +44 (0)1202 449419 Fax: +44 (0)1202 449448 http://www.adaptive.com