groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Schalk Cronjé <ysb...@gmail.com>
Subject Change in method selection behaviour between 2.3.x and 2.4.x
Date Mon, 01 Jun 2015 11:25:19 GMT
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