You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Clement Escoffier (JIRA)" <ji...@apache.org> on 2012/12/14 19:06:12 UTC

[jira] [Commented] (FELIX-3742) Implementing class fails to load unless super interface's (interface extended by implemented interface) package is imported.

    [ https://issues.apache.org/jira/browse/FELIX-3742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13532502#comment-13532502 ] 

Clement Escoffier commented on FELIX-3742:
------------------------------------------

I'm not able to reproduce the issue:

I've 3 bundles:
1) Parent : containing sample.parent.SampleServiceParent and exporting sample.parent
2) Service : containing sample.service.SampleService and exporting sample.service and importing sample.parent
3) Impl : containing sample.impl.SampleServiceImpl and importing sample.service

The 'impl' component code is:
@Component
@Provides
@Instantiate
public class SampleServiceImpl implements SampleService {
    public void doSomething2() { // Parent
        System.out.println("Do something 2");
    }

    public void doSomething() {  // Sample Service
        System.out.println("Do something");
    }

    @Validate
    public void start() {
        doSomething();
        doSomething2();
    }
}

When I deploy those three bundles, I don't get any problem.


                
> Implementing class fails to load unless super interface's (interface extended by implemented interface) package is imported.
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3742
>                 URL: https://issues.apache.org/jira/browse/FELIX-3742
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: ipojo-core-1.8.2
>            Reporter: Ricardo Torres
>            Assignee: Clement Escoffier
>
> I attempted to file FELIX-3741, but the issue appears to stem from iPOJO. Specifically org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceHandler generates the following error:
> [Thread-1] ERROR com.sample.bundle - [ERROR] com.sample.SampleServiceImpl : Service Providing: The service specification com.sample.ICoreService cannot be load
> This happens if SampleServiceImpl is in com.sample.bundle. This bundle imports the package of the interface SampleServiceImpl implements, but does not directly import the interface this interface extends.
> Beyond the above referenced issue, I also hashed this out on the mailing list: https://mail-archives.apache.org/mod_mbox/felix-users/201210.mbox/%3CCAAkggDoMXvJ995o3=4_gnLWAq9gmYJmJYZGTDJhAtEG7pXeWFQ@mail.gmail.com%3E

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira