[ http://issues.apache.org/jira/browse/FELIX-137?page=comments#action_12432358 ] Marcel Offermans commented on FELIX-137: ----------------------------------------
Thanks for the patches, Bram! I'm going to combine them to make sure that callbacks are found regardless of their exact location. getDeclaredMethod() was used because it can also find non-public methods (which getMethod() can't) but on the other hand, getDeclaredMethod() cannot find methods in superclasses. I would really want both, so I'll come up with a patch that does just that. > ServiceDependency fails to invoke callback methods when implemented in > superclass (patch included) > -------------------------------------------------------------------------------------------------- > > Key: FELIX-137 > URL: http://issues.apache.org/jira/browse/FELIX-137 > Project: Felix > Issue Type: Bug > Components: Dependency Manager > Affects Versions: 0.8.0 > Reporter: Bram de Kruijff > Attachments: ServiceDependency_patch1.txt, > ServiceDependency_patch2.txt > > > ServiceDependency fails to invoke callback methods when implemented in > superclass. The problem is in the invokeCallbackMethod method cause it will > never loop. I include 2 patches. The first just fixes the loop, but I was > wondering why getDeclaredMethod is used. Using getMethod instead seems to > work just fine. > grz, > Bram -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira