felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (FELIX-3085) Importing/exporting "." should not be allowed
Date Wed, 31 Aug 2011 18:40:11 GMT

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

Richard S. Hall edited comment on FELIX-3085 at 8/31/11 6:40 PM:
-----------------------------------------------------------------

I can understand the desire for short cuts, but in this case it really is meaningless and
completely outside the OSGi spec. Just consider if people started regularly using "." to import
and export the default package in OSGi. It is very likely your import of "." may get resolved
to someone else's export of ".", which would definitely not be what you want.

Also, since it is non-spec'd behavior, using it means your bundles likely won't be portable
across OSGi implementations, as you have witnessed by your experiments so far.

      was (Author: rickhall):
    I can understand the desire for short cuts, but in this case it really is meaningless
and completely outside the OSGi spec. Just consider if people started regularly using "."
to import and export the default package in OSGi. It is very likely your import of "." from
getting resolved to someone else's export of ".", which would definitely not be what you want.

Also, since it is non-spec'd behavior, using it means your bundles likely won't be portable
across OSGi implementations, as you have witnessed by your experiments so far.
  
> Importing/exporting "." should not be allowed
> ---------------------------------------------
>
>                 Key: FELIX-3085
>                 URL: https://issues.apache.org/jira/browse/FELIX-3085
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.2.2
>            Reporter: Bahjat Salem
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: framework-4.0.0
>
>         Attachments: consumingbundle_1.0.0.201108221544.jar, equinox-3.6.2.R36x_v20110210-result.txt,
felix-3.2.2-result.txt, legacy_code_1.0.0.201108221544.jar, resourcebundle_1.0.0.201108221544.jar
>
>
> In the Equinox implementation of OSGi, importing and exporting the default package (".")
is allowed, whereas it fails to produce the expected results under Apache Felix.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message