Issue 13454: ExecutionFactory::getStrategy doesn't follow 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.2.2.2 ExecutionFactory Summary: The ExecutionFactory::getStrategy operation does not initialize the strategy variable, as required by Annex A.3.3. Proposed Resolution: Replace the body of getStrategy with: // Get the strategy with the given name. int i = this.getStrategyIndex(name); SemanticStrategy strategy = null; if (i <= this.strategies.size()) { strategy = this.strategies.getValue(i-1); } return strategy; Resolution: Change the code as proposed. Revised Text: Replace the body of ExecutionFactory::getStrategy with: // Get the strategy with the given name. int i = this.getStrategyIndex(name); SemanticStrategy strategy = null; if (i <= this.strategies.size()) { strategy = this.strategies.getValue(i-1); } return strategy; Actions taken: February 6, 2009: received issue July 23, 2010: closed issue Discussion: End of Annotations:===== ubject: ExecutionFactory::getStrategy doesn't follow conventions Date: Fri, 6 Feb 2009 15:57:19 -0500 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ExecutionFactory::getStrategy doesn't follow conventions thread-index: AcmInX+7LhKlo3NfTnul0kB/zWdnHQ== From: "Ed Seidewitz" To: Specification: Semantics of a Foundation Subset for Executable UML Models, FTF . Beta 1 (ptc/08-11-03) Section: 8.2.2.2 ExecutionFactory Summary: The ExecutionFactory::getStrategy operation does not initialize the strategy variable, as required by Annex A.3.3. Proposed Resolution: Replace the body of getStrategy with: // Get the strategy with the given name. int i = this.getStrategyIndex(name); SemanticStrategy strategy = null; if (i <= this.strategies.size()) { strategy = this.strategies.getValue(i-1); } return strategy;