Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
2.5.0-beta-2
-
None
-
None
Description
Under Groovy apache-groovy-binary-2.5.0-beta-2 the following code
final Map<Table, Table> tableTableMap = new TreeMap<>(Table.tableNameAndNameComparator).withDefault { final Table t -> final tNew = new TableMapEntry(t, tableTableAliasMap) return tNew }
throws
Error:(214, 3) Groovyc: The variable [tNew] is declared final but is reassigned
Attachments
Attachments
Issue Links
- relates to
-
GROOVY-8093 Final variable analysis broken within closure fields
- Closed