Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319350 - [Xtend] Java extensions with primitive type parameters
Summary: [Xtend] Java extensions with primitive type parameters
Status: CLOSED WONTFIX
Alias: None
Product: M2T
Classification: Modeling
Component: Xpand (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-09 04:49 EDT by Matei Istoan CLA
Modified: 2020-04-30 13:55 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 Matei Istoan CLA 2010-07-09 04:49:45 EDT
Build Identifier: I20100603-1500

There is a lack of support in the documentation for java extensions. Restrictions on the types of the parameters are not mentioned. Primitive java types cannot be used, and in fact one must use the wrapper classes instead. 

Simple solution might be to mention this fact, and probably to suggest using the adapter pattern( solution offered also by Christian Dietrich). Also, the correspondence between the types should be mentioned( for example the Integer type in XPand corresponds to the Long java type).

Reproducible: Always
Comment 1 Karsten Thoms CLA 2020-04-30 13:55:05 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.