Bug 222581 - Bug resolving CollectionTypes in AbstractTypeResolver
Summary: Bug resolving CollectionTypes in AbstractTypeResolver
Status: CLOSED FIXED
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: M6   Edit
Assignee: Adolfo Sanchez-Barbudo Herrera CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-03-13 10:43 EDT by Adolfo Sanchez-Barbudo Herrera CLA
Modified: 2013-05-17 15:28 EDT (History)
1 user (show)

See Also:


Attachments
Easy patch to solve the bug. (1.67 KB, patch)
2008-03-13 10:43 EDT, Adolfo Sanchez-Barbudo Herrera CLA
wayne.beaton: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adolfo Sanchez-Barbudo Herrera CLA 2008-03-13 10:43:23 EDT
Created attachment 92440 [details]
Easy patch to solve the bug.

When resolving collectionTypes (Collection, Set, OrderedSet, Sequence, Bag), the unique instances from the OCL Standard Library should be returned when the type of the collection is T (instance of AnyType).

The actual implementation tries to find the type in the collection package, and will create a new one when is not necessary.
Comment 1 Christian Damus CLA 2008-03-13 14:03:15 EDT
Patch committed to CVS HEAD (1.2 branch) with a few stylistic changes to match the OCL component.
Comment 2 Christian Damus CLA 2008-03-19 19:07:14 EDT
Fix available in HEAD: 1.2.0.I200803191800.
Comment 3 Ed Willink CLA 2011-05-27 02:39:09 EDT
Closing after over a year in verified state.
Comment 4 Ed Willink CLA 2011-05-27 02:41:21 EDT
Closing after over a year in verified state.