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

Bug 311539

Summary: Problem when assigning value to Array of EInt
Product: [Modeling] M2T Reporter: Ludwig Straub <shadowrobe>
Component: XpandAssignee: Project Inbox <m2t.xpand-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: shadowrobe
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ludwig Straub CLA 2010-05-04 09:09:45 EDT
Build Identifier: 20100318-1801

It is not possible to add a number (such as 42) to a collection of type EInt using Xtend.

Reproducible: Always

Steps to Reproduce:
Just create a metamodel class with two attributes:
ei: EInt [0..1]
eia: EInt [0..N]

The following works in Xtend when filling an instance of that class:
setEi(42)

The following does not work in Xtend but results in an java.lang.ArrayStoreException:
eia.add(42)
Comment 1 Karsten Thoms CLA 2020-04-30 13:54:25 EDT
This is a batch close of open M2T Xpand bugs. It is not planned work on this component in the foreseeable future. If you think this issue needs to be solved and you plan to contribute a fix then feel free to reopen it.