enapps-enorman opened a new pull request, #26: URL: https://github.com/apache/sling-org-apache-sling-testing-osgi-mock/pull/26
Impacts both the activate/deactivate methods and the bind/unbind methods. The scenario where this happens is when the parent class has an activate/deactivate/bind/unbind method with one set of arguments and the subclass has an activate/deactivate/bind/unbind method with the same name but with a different set of arguments. For example, when the context.registerInjectActivateService(..) call is invoked, it finds the activate(Map) method from the parent class and invokes it and then returns instead of calling the more specific activate(Config) methods from the subclass. The fix proposed here is to change the method matching algorithm to be a "nearest match" approach where it checks all the possibilities on the current candidate class before walking up the superclasses to find a match. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
