Issue 18722: RemoveStructuralFeatureValueActionActivation: Removing links with specified remove at value works incorrectly (fuml-rtf) Source: LieberLieber Software (Mrs. Tanja Mayerhofer, mayerhofer(at)big.tuwien.ac.at.) Nature: Revision Severity: Minor Summary: RemoveStructuralFeatureValueActionActivation: Removing links with specified remove at value works incorrectly The while loop for finding the link with the position defined with the removeAt pin is implemented incorrectly. The loop variable is not correctly incremented. The following code would be the resolution for this bug: >>> while (notFound & i <= links.size()) { Link link = links.getValue(i - 1); if (link.getFeatureValue(feature).position == removeAt) { notFound = false; link.destroy(); } >>> ++i; } Resolution: Revised Text: Actions taken: May 16, 2013: received issue Discussion: End of Annotations:===== m: webmaster@omg.org Date: 16 May 2013 11:11:02 -0400 To: Subject: Issue/Bug Report X-Brightmail-Tracker: AAAAAA== X-Brightmail-Tracker: AAAAAA== ******************************************************************************* Name: Tanja Mayerhofer Employer: Vienna University of Technology mailFrom: mayerhofer@big.tuwien.ac.at Terms_Agreement: I agree Specification: Semantics of a Foundational Subset for Executable UML Models (FUML) Section: 8.6.3.2.12 RemoveStructuralFeatureValueActionActivation FormalNumber: ptc/2012-10-18 Version: 1.1 Doc_Year: 2012 Doc_Month: October Doc_Day: 18 Page: 306-309 Title: RemoveStructuralFeatureValueActionActivation: Removing links with specified remove at value works incorrectly Nature: Revision Severity: Minor CODE: 3TMw8 B1: Report Issue Remote Name: hopper.ifs.tuwien.ac.at Remote User: HTTP User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0 Time: 11:11 AM Description: RemoveStructuralFeatureValueActionActivation: Removing links with specified remove at value works incorrectly The while loop for finding the link with the position defined with the removeAt pin is implemented incorrectly. The loop variable is not correctly incremented. The following code would be the resolution for this bug: >>> while (notFound & i <= links.size()) { Link link = links.getValue(i - 1); if (link.getFeatureValue(feature).position == removeAt) { notFound = false; link.destroy(); } >>> ++i; }