Private method in groovy is not private
groovy, private, private-members
Solution
There is defect on that in Groovy issue tracking system and that defect is still open.
Problem
``` class A { private def sayHello() { println "Anish" } } def a_obj = new A() a_obj.sayHello() ``` output : `Anish` Is there any way to protect `sayHello()` in groovy or am I missing something?