Get reference to super method call

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Get reference to super method call


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

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.


-- - Working code is not enough