[ 
https://issues.apache.org/jira/browse/FELIX-5244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre De Rop resolved FELIX-5244.
----------------------------------
    Resolution: Fixed

Fixed in rv 1741331, and added the following test case:

src/org/apache/felix/dm/lambda/itest/Felix5244Test.java

The problem was not only concerning service dependencies, but also other types 
of dependencies.

> Can't inject service using a method ref on a parent class method.
> -----------------------------------------------------------------
>
>                 Key: FELIX-5244
>                 URL: https://issues.apache.org/jira/browse/FELIX-5244
>             Project: Felix
>          Issue Type: Bug
>          Components: Dependency Manager Lambda
>    Affects Versions: org.apache.felix.dependencymanager-r8
>            Reporter: Pierre De Rop
>            Assignee: Pierre De Rop
>             Fix For: org.apache.felix.dependencymanager-r9
>
>
> With DM lambda, you can't inject a service using a method reference on a bind 
> method which is inherited from a parent class.
> For example, using the following classes:
> {code}
>     interface MyDependency {}
>     
>     class AbstractService {
>          void bind(MyDependency myDependency) {
>        }
>     }
>     
>     class MyService extends AbstractService {
>     }    
> {code}
> then the following does not work:
> {code}
> component(comp -> comp
>     .impl(MyService.class)
>     .withSvc(MyDependency.class, svc -> svc.add(AbstractService::bind)));
> {code}
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to