Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354415

Summary: Xcore's Jvm inference does not handle multiplicity above 1
Product: [Modeling] EMF Reporter: Hallvard Traetteberg <hal>
Component: ToolsAssignee: Ed Merks <Ed.Merks>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Patch for bug none

Description Hallvard Traetteberg CLA 2011-08-10 13:50:50 EDT
References, operation parameters and return values can have upper bound above 1. This should result in using EList<type> as the type in the inferred model.
Comment 1 Hallvard Traetteberg CLA 2011-08-10 15:34:15 EDT
Created attachment 201274 [details]
Patch for bug

To handle upper bounds above 1 we need a method for creating a type reference for typed elements, not just the type. The implementation wraps the type in an EList reference, if the upper bounds is > 1.
Comment 2 Ed Merks CLA 2011-08-11 14:34:03 EDT
I could not seem to apply this patch.  I had a look though.  I think it's the same as what I'd planned, i.e., call getType rather than work directly with the EGenericType.  That will take into account whether EList is suppressed to List and other funky things. I've committed those changes to git.
Comment 3 Ed Merks CLA 2011-09-24 12:05:42 EDT
It's available in Git.