-
Key: UML23-140
-
Legacy Issue Number: 15221
-
Status: closed
-
Source: Titian Software ( Tomasz Biegacz)
-
Summary:
In Core::Abstractions::Super::Classifier::hasVisibilityOf there is
Classifier::hasVisibilityOf(n: NamedElement) : Boolean;
pre: self.allParents()>collect(c | c.member)>includes
if (self.inheritedMember->includes ) then
hasVisibilityOf = (n.visibility <> #private)
else
hasVisibilityOf = trueThis is wrong because “NamedElement” doesn’t have “visibility” attribute. In fact “Feature” doesn’t have “visibility” attribute as well, so all of the properties and operations for Classifier needs to be public. That’s why I think that for now “hasVisiblityOf” should be fixed to:
Classifier::hasVisibilityOf(n: NamedElement) : Boolean;
pre: self.allParents()>collect(c | c.member)>includes
hasVisibilityOf = truebut maybe it should be considered to add visibility attribute to Feature.
-
Reported: UML 2.2 — Fri, 23 Apr 2010 04:00 GMT
-
Disposition: Resolved — UML 2.3
-
Disposition Summary:
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
UML23 — Bug in Core::Abstractions::Super::Classifier::hasVisibilityOf
- Key: UML23-140
- OMG Task Force: UML 2.3 RTF