-
Key: UML14-949
-
Legacy Issue Number: 2567
-
Status: closed
-
Source: Anonymous
-
Summary:
Summary: The postcondition on set::collect seems to be incorrect. It currently reads:
set->collect(expression : OclExpression) : Bag(expression.oclType)
The Bag of elements that results from applying expr to every member of set.
post: result = set->iterate(elem; acc : Bag(T) = Bag{} | acc->including(expr) )
The type of acc is wrong, and it should read:
post: result = set->iterate(elem; acc : Bag(expression.oclType) = Bag{} | acc->including(expr) )
Note that the same goes for Bag::collect on page 6-41.
-
Reported: UML 1.1 — Mon, 29 Mar 1999 05:00 GMT
-
Disposition: Resolved — UML 1.3
-
Disposition Summary:
No Data Available
-
Updated: Fri, 6 Mar 2015 21:36 GMT
UML14 — The postcondition on set::collect seems to be incorrect
- Key: UML14-949
- OMG Task Force: UML 1.4 RTF