groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcin ZajÄ…czkowski <msz...@wp.pl>
Subject Get reference to super method call
Date Thu, 14 Sep 2017 12:15:19 GMT
Hi,

I would like to be able to keep as a method closure a reference to a
call of a method in a super class. I tried:

Closure sc = super.&myMethod
sc()

however, I always calls a method from a current class.

Should that work or there is some other syntax to achieve that?

Tested with Groovy 2.4.10 and 2.4.12.

Marcin

-- 
http://blog.solidsoft.info/ - Working code is not enough

Mime
View raw message