DRY-177: class: has-method does not consider access modifiers
Submitted on 5 December 2005 at 00:07
has-method is optimized to limit the number of .class reads, so it does not reuse get-methods (which gets all the methods). However, has-method has the same access requirements as get-methods: no inheritance of private methods and only protected/public methods if subclass is in different package.
Log in to post comments