Issue 15942: Who is "self"? (uml-testing-profile-rtf) Source: KnowGravity Inc. (Mr. Markus Schacher, markus.schacher(at)knowgravity.com) Nature: Clarification Severity: Minor Summary: What is the type/class of the instance specification called "self" in figure 6.25? Resolution: As UML says, self always refers to the context classifier of an interaction. Being applied to hwe lifeline (6.29), this implies HWEComponent being the context classifier. However, this issue leads to another one when using “self” notation: The «DefaultApplication» may point from «Defaults» among others to Package. As long as the supplier («Default») is one of Classifier, Behavior, InteractionFragment, State, Region, Activity, there is no problem. By attaching it to Package, the general idea is that such a «Default» will be applied to any test component (what represents a generic declaration and powerful application of «Default») being indirectly contained in that package. When using the “self” notation the type of such lifeline is ambiguous, because a Package never has a context classifier. Implicitly, it is seen as a generic type declaration, representing any test component/test context. Revised Text: Insert the following paragraph to subsection Semantics of section Default: In case a «Default» is applied to a package, the behavior of the default is applied to every test component being contained either directly or indirectly (as a descendant) in that package. Actions taken: January 12, 2011: received issue October 21, 2011: closed issue Discussion: End of Annotations:===== m: webmaster@omg.org Date: 12 Jan 2011 16:28:03 -0500 To: Subject: Issue/Bug Report ******************************************************************************* Name: Markus Schacher Employer: KnowGravity Inc. mailFrom: markus.schacher@knowgravity.com Terms_Agreement: I agree Specification: UML Testing Profile Section: 6.6.2 FormalNumber: 05-07-07 Version: 1.0 Doc_Year: 2005 Doc_Month: July Doc_Day: 07 Page: 51 Title: Who is "self"? Nature: Clarification Severity: Minor CODE: 3TMw8 B1: Report Issue Description: What is the type/class of the instance specification called "self" in figure 6.25?