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

Bug 352642

Summary: Variables in for loops can't be set final
Product: [Modeling] TMF Reporter: Benjamin Schwertfeger <benjamin.schwertfeger>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: sebastian.zarnekow
Version: 2.0.1Flags: sebastian.zarnekow: indigo+
Target Milestone: SR1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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 ***