| Summary: | [Xbase] nesting closures leads to 'Cannot refer to a non-final variable' compiler error in generated Java code | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Jendrik Johannes <jendrik.johannes> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sven.efftinge |
| Version: | unspecified | Flags: | sven.efftinge:
indigo+
|
| Target Milestone: | M7 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
pushed to master Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
Build Identifier: 2.0.0.v201105010942 Example: newArrayList('1').filter(e|newArrayList('1').filter(f | f == e) == null) leads to the following compiler error: "Cannot refer to a non-final variable e inside an inner class defined in a different method" The parameters of the generated apply() methods probably need to be final. Reproducible: Always