groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joud.kassem79@gmail.com <joud.kasse...@gmail.com>
Subject groovy2.5.6 final variable error
Date Wed, 03 Apr 2019 10:22:43 GMT
Hi all,

I upgraded to groovy 2.5.6 and am compiling my grails 4 project. I got this error:

The variable [version] is declared final but is reassigned

And the related code is something like this:

void upgrade() {
     final String version
     version = "something”
                  }

Anyone knows why am getting this error? The variable is assigned only once.

Thanks in advance

Mime
View raw message