UML 2.2 RTF Avatar
  1. OMG Issue

UML22 — UML 2 - Invalid subsetting of composition ends

  • Key: UML22-144
  • Legacy Issue Number: 8952
  • Status: closed  
  • Source: Simula Research Laboratory ( Dr. Bran Selic)
  • Summary:

    In figure 3, the association end Element::owner is shown as navigable and as a union of all its subsets. According to the following convention defined in section 6.5.2, this end is owned by the class and not the composition association:

    " • An association with neither end marked by navigability arrows means that:
    • the association is navigable in both directions
    • each association end is owned by the classifier at the opposite end (i.e., neither end is owned by the association)"

    Throughout the spec, there are many places where this association end is specialized into a non-navigable association end (e.g., figures 4, 5, ...). But, according to the following additional rule in 6.5.2:

    " • An association with one end marked by a navigability arrow means that:
    • the association is navigable in the direction of that end,
    • the marked association end is owned by the classifier, and
    • the opposite (unmarked) association end is owned by the association"

    this means that such non-navigable association ends are owned by the association and not by the class.

    Consequently, such ends cannot be valid specializations of Element::owner (as stated in the spec) since they are owned by a classifier (the association) that is not related by generalization to the classifier (i.e., metaclass) that owns the original attribute.

    Recommendation:

    (1) Define Element::owner such that it is owned by the composition association and not by the Element class. This will make all the currently invalid subsettings of this type valid.

    (2) Do this for all other cases of invalid subsets of this type in the spec, if they exist.

    (3) Make it explicit in the spec that these are exceptions to the convention described in 6.5.2

  • Reported: UML 2.0 — Mon, 8 Aug 2005 04:00 GMT
  • Disposition: Resolved — UML 2.2
  • Disposition Summary:

    Discussion
    This issue has already been resolved by, or no longer applies to, the UML 2.5 Beta 1 specification.
    Disposition: Closed - No Change

  • Updated: Fri, 6 Mar 2015 20:58 GMT