Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367681 - [pivot] Constructued Collection tupe problem
Summary: [pivot] Constructued Collection tupe problem
Status: CLOSED INVALID
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: 4.0.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: OCL Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-31 10:38 EST by Ed Willink CLA
Modified: 2013-05-20 11:37 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 2011-12-31 10:38:26 EST
context Operation
def: returnType : Type = Set(type.oclType())

fails to parse. (This is a simplification of the more generic collection type constructor).
Comment 1 Ed Willink CLA 2012-01-01 09:39:07 EST
Java supports e.g. ArrayList<String> but not ArrayList<"a".getClass()>.

OCL similarly supports Set(String) but not Set('a'.oclType()).

Use of type-valued expressions for type-literals would be a significant language enhancement that needs a very substantial motivation.
Comment 2 Ed Willink CLA 2013-05-20 11:37:32 EDT
CLOSED after a year in the RESOLVED state.