Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351809 - [Xbase] Code generation for CollectionExtensions.operator_add(Collection, Iterable) binds wrong type
Summary: [Xbase] Code generation for CollectionExtensions.operator_add(Collection, Ite...
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: SR1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-12 06:06 EDT by Jendrik Johannes CLA
Modified: 2017-09-19 17:10 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jendrik Johannes CLA 2011-07-12 06:06:41 EDT
val l = new ArrayList<JvmField>();
  new ArrayList<JvmMember>() += l;

compiles to (with Java compilation error):

  ArrayList<JvmField> _arrayList = new ArrayList<JvmField>();
  final ArrayList<JvmField> l = _arrayList;
  ArrayList<JvmMember> _arrayList_1 = new ArrayList<JvmMember>();
  boolean _operator_add = CollectionExtensions.
    <JvmField>operator_add(_arrayList_1, l);

but last line should be (I think):

  boolean _operator_add = CollectionExtensions.
    <JvmMember>operator_add(_arrayList_1, l);

or:

  boolean _operator_add = CollectionExtensions.
    operator_add(_arrayList_1, l);
Comment 1 Sebastian Zarnekow CLA 2011-07-15 10:23:51 EDT
Pushed to master.
Comment 2 Karsten Thoms CLA 2017-09-19 16:59:03 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:10:31 EDT
Closing all bugs that were set to RESOLVED before Neon.0