Issue 13462: UnlimitedNaturalValue::toString does not follow Annex A conventions (fuml-ftf) Source: Model Driven Solutions (Mr. Ed Seidewitz, ed-s(at)modeldriven.com) Nature: Uncategorized Issue Severity: Summary: Specification: Semantics of a Foundation Subset for Executable UML Models, FTF – Beta 1 (ptc/08-11-03) Section: 8.3.2.2.24 UnlimitedNaturalValue Summary: The UnlimitedNaturalValue::toString operation has multiple return statements and uses the Java String.valueOf operation, which do not follow Annex A conventions. Proposed Resolution: Replace the body of the toString operation with: String stringValue = "*"; if (this.value.naturalValue >= 0) { IntegerValue integerValue = new IntegerValue(); integerValue.value = this.value.naturalValue; stringValue = integerValue.toString(); } return stringValue; Resolution: Change the code as proposed. Revised Text: Replace the body of the UnlimitedNaturalValue::toString operation with: String stringValue = "*"; if (this.value.naturalValue >= 0) { IntegerValue integerValue = new IntegerValue(); integerValue.value = this.value.naturalValue; stringValue = integerValue.toString(); return stringValue; Actions taken: February 7, 2009: received issue July 23, 2010: closed issue Discussion: End of Annotations:===== ubject: UnlimitedNaturalValue::toString does not follow Annex A conventions Date: Sat, 7 Feb 2009 11:31:35 -0500 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: UnlimitedNaturalValue::toString does not follow Annex A conventions thread-index: AcmJQYsikgMFB1XjTHqtGMNAAJKqSw== From: "Ed Seidewitz" To: Specification: Semantics of a Foundation Subset for Executable UML Models, FTF . Beta 1 (ptc/08-11-03) Section: 8.3.2.2.24 UnlimitedNaturalValue Summary: The UnlimitedNaturalValue::toString operation has multiple return statements and uses the Java String.valueOf operation, which do not follow Annex A conventions. Proposed Resolution: Replace the body of the toString operation with: String stringValue = "*"; if (this.value.naturalValue >= 0) { IntegerValue integerValue = new IntegerValue(); integerValue.value = this.value.naturalValue; stringValue = integerValue.toString(); } return stringValue;