aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Baldwin (JIRA)" <>
Subject [jira] [Created] (ARIES-1303) Return type for public API getRespository() is not exported
Date Mon, 02 Mar 2015 10:45:04 GMT
Tim Baldwin created ARIES-1303:

             Summary: Return type for public API getRespository() is not exported
                 Key: ARIES-1303
             Project: Aries
          Issue Type: Bug
          Components: Blueprint
    Affects Versions: blueprint-core-1.3.0
            Reporter: Tim Baldwin
            Priority: Minor

The interface class "" in the
blueprint-core component is a public interface that contains a deprecated internal API method:

     * To be removed as internal API
    Repository getRepository();

Because this is a public API interface this method is part of a public exported package and
is visible to applications, however the return type for the method "org.apache.aries.blueprint.di.Repository"
is an internal class and is not exported.

This can cause issues with tooling that performs checking that all public methods, parameters
and return types form a consistent set.

Ideally this deprecated method should be removed from the public interface (I don't believe
it can actually be used by anyone as the return type is not accessible), but as it is used
internally it would need moving to some other internal only interface (along with all resulting

Alternatively, while the deprecated method remains visible, the return type should be publicly
exported too. 

This message was sent by Atlassian JIRA

View raw message