UML 2.2 RTF Avatar
  1. OMG Issue

UML22 — OCL for Property::opposite() is incorrect:

  • Key: UML22-846
  • Legacy Issue Number: 8451
  • Status: closed  
  • Source: International Business Machines ( Mr. Jim Amsden)
  • Summary:

    OCL for InfrastructureLibrary::Core::Constructs::Property::opposite() should it be:

    opposite =

    if owningAssociation->empty() and association.memberEnd->size() = 2 then

    let otherEnd = (association.memberEnd - self)->any() in

    if otherEnd.owningAssociation->empty() then otherEnd else Set{} endif

    else Set {}

    endif

    Recommendation:

    Fix the operation definition.

  • Reported: UML 1.4.2 — Fri, 4 Mar 2005 05:00 GMT
  • Disposition: Resolved — UML 2.1
  • Disposition Summary:

    see above

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