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

Bug 319350

Summary: [Xtend] Java extensions with primitive type parameters
Product: [Modeling] M2T Reporter: Matei Istoan <matei000>
Component: XpandAssignee: Project Inbox <m2t.xpand-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.