Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342184 - [xtend2] problems with nested types in FOR-loops
Summary: [xtend2] problems with nested types in FOR-loops
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-07 11:36 EDT by Moritz Eysholdt CLA
Modified: 2017-09-19 17:57 EDT (History)
2 users (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 Moritz Eysholdt CLA 2011-04-07 11:36:23 EDT
the xtend2-code

------
foo(Map<String, String> m) { '''«FOR e:m.entrySet»«ENDFOR»''' }
------

gets compiled to

------
public StringConcatenation foo(final Map<String,String> m) {
    StringConcatenation builder = new StringConcatenation();
    {
      Set<Entry<String,String>> _entrySet = m.entrySet();
      for(java.util.Map$Entry<java.lang.String,java.lang.String> e : _entrySet) {
      }
    }
    return builder;
  }
-------

In there, "java.util.Map$Entry" causes a Java compile error. It needs to be "java.util.Map.Entry"
Comment 1 Sven Efftinge CLA 2011-04-08 03:19:51 EDT
pushed to master
Comment 2 Karsten Thoms CLA 2017-09-19 17:46:41 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:57:44 EDT
Closing all bugs that were set to RESOLVED before Neon.0