Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311539 - Problem when assigning value to Array of EInt
Summary: Problem when assigning value to Array of EInt
Status: CLOSED WONTFIX
Alias: None
Product: M2T
Classification: Modeling
Component: Xpand (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-04 09:09 EDT by Ludwig Straub CLA
Modified: 2020-04-30 13:54 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.