groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Champeau <cedric.champ...@gmail.com>
Subject Re: Change in method selection behaviour between 2.3.x and 2.4.x
Date Mon, 01 Jun 2015 11:26:54 GMT
It must be a side effect of multi-properties support. In your example is it
indeed ambiguous.

2015-06-01 13:25 GMT+02:00 Schalk Cronjé <ysb33r@gmail.com>:

>  Was this change intentional?
>
> In Groovy 2.4.x, getRole() is called, but in 2.3.x isRole() is called.
>
> class A {
>   boolean isRole() {true}
>   String getRole() {'role'}
> }
>
> def a = new A()
> println a.role
>
>
> --
> Schalk W. Cronjé
> Twitter / Ello / Toeter : @ysb33r
>
>

Mime
View raw message