Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352642 - Variables in for loops can't be set final
Summary: Variables in for loops can't be set final
Status: CLOSED DUPLICATE of bug 347114
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: SR1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-20 14:24 EDT by Benjamin Schwertfeger CLA
Modified: 2011-07-20 17:26 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 Benjamin Schwertfeger CLA 2011-07-20 14:24:07 EDT
In java it is possible to define for loop like this:
for (final String i : addresses)

This prevents from accidential override and would allow usage of this variable in Clojures. Currently the usage leads to incorrect java files without error in xtend.
Comment 1 Sebastian Zarnekow CLA 2011-07-20 17:26:17 EDT

*** This bug has been marked as a duplicate of bug 347114 ***