[jira] [Updated] (GROOVY-8093) Final variable analysis broken within closure fields
[ https://issues.apache.org/jira/browse/GROOVY-8093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul King updated GROOVY-8093: -- Component/s: Compiler > Final variable analysis broken within closure fields > > > Key: GROOVY-8093 > URL: https://issues.apache.org/jira/browse/GROOVY-8093 > Project: Groovy > Issue Type: Bug > Components: Compiler >Affects Versions: 2.5.x >Reporter: Paul King > > The following code compiles and runs successfully in 2.4.8 but fails in 2.5 > snapshots: > {code} > class Foo { > public Closure bar = { > final RANKINGS = ["year": 0, "month": 10] > } > } > new Foo().bar() > {code} > Error message is: > {noformat} > 1 compilation error: > The variable [RANKINGS] is declared final but is reassigned > . At [3:9] at line: 3, column: 9 > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Updated] (GROOVY-8093) Final variable analysis broken within closure fields
[ https://issues.apache.org/jira/browse/GROOVY-8093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul King updated GROOVY-8093: -- Affects Version/s: 2.5.x > Final variable analysis broken within closure fields > > > Key: GROOVY-8093 > URL: https://issues.apache.org/jira/browse/GROOVY-8093 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.5.x >Reporter: Paul King > > The following code compiles and runs successfully in 2.4.8 but fails in 2.5 > snapshots: > {code} > class Foo { > public Closure bar = { > final RANKINGS = ["year": 0, "month": 10] > } > } > new Foo().bar() > {code} > Error message is: > {noformat} > 1 compilation error: > The variable [RANKINGS] is declared final but is reassigned > . At [3:9] at line: 3, column: 9 > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (GROOVY-8093) Final variable analysis broken within closure fields
[ https://issues.apache.org/jira/browse/GROOVY-8093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul King updated GROOVY-8093: -- Description: The following code compiles and runs successfully in 2.4.8 but fails in 2.5 snapshots: {code} class Foo { public Closure bar = { final RANKINGS = ["year": 0, "month": 10] } } new Foo().bar() {code} Error message is: {noformat} 1 compilation error: The variable [RANKINGS] is declared final but is reassigned . At [3:9] at line: 3, column: 9 {noformat} > Final variable analysis broken within closure fields > > > Key: GROOVY-8093 > URL: https://issues.apache.org/jira/browse/GROOVY-8093 > Project: Groovy > Issue Type: Bug >Reporter: Paul King > > The following code compiles and runs successfully in 2.4.8 but fails in 2.5 > snapshots: > {code} > class Foo { > public Closure bar = { > final RANKINGS = ["year": 0, "month": 10] > } > } > new Foo().bar() > {code} > Error message is: > {noformat} > 1 compilation error: > The variable [RANKINGS] is declared final but is reassigned > . At [3:9] at line: 3, column: 9 > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)