Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 288569 - Investigate an OCL enhancement to support typed empty collections.
Summary: Investigate an OCL enhancement to support typed empty collections.
Status: CLOSED DUPLICATE of bug 184329
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: 1.3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: OCL Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-03 16:39 EDT by Ed Willink CLA
Modified: 2011-05-27 02:47 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2009-09-03 16:39:18 EDT
An empty collection has an inadequate type:

OrderedSet{}

has what element type. This requires some difficult type migration
when a subsequent append occurs.

It ought to be possible to do

OrderedSet(ElementType){}

check the grammar implications and raise an OMG issue.
Comment 1 Ed Willink CLA 2009-11-12 02:16:47 EST
Resolved by Issue 12953

*** This bug has been marked as a duplicate of bug 184329 ***
Comment 2 Ed Willink CLA 2011-05-27 02:47:46 EDT
Closing after over 18 months in resolved state.