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

Marko Friedemann commented on FELIX-3059:
-----------------------------------------

Well, regarding the issues that can arise from reexporting, I followed some of 
the discussions and feel there are pros and cons to both sides.

The small testcase I submitted was simply to demonstrate the issue and does in 
itself not really need to reexport stuff.
The issues arose in the first place when I tried to get eclipse-based bundles 
(they call them plugins) to work and eclipse uses this a lot.

Running these on top of (slightly modified) eclipse base plugins on top of 
felix does work so far, BTW, and it is actually only a few rather minor issues 
that prevent it out-of-the-box.
Considering to put up some blog or something about it, no time atm, though.

Wrt. to reexporting, the plugins I meant to get working also use it and 
rewriting them to use package imports instead does not help in the least with 
modularity.
In fact, to get them work prior to the fix (done, as I said), I had to import 
packages left, right and center, resulting in a jumbled mess that doesn't make 
sense (runtime implementation classes from at-first-glance completely unrelated 
bundles all over the place). So, to summarize, there sure are uses cases for 
reexporting. :>

Anyway, sorry for the wall of text and thanks again. Now hopefully jbosgi will 
pick this change up and start working, better, too.

> Reexported packages are not calculate correctly leading to resolver and class 
> loading bugs
> ------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3059
>                 URL: https://issues.apache.org/jira/browse/FELIX-3059
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.2.2
>         Environment: Windows XP, JavaSE-1.6, Eclipse 3.6 Helios
>            Reporter: Marko Friedemann
>            Assignee: Richard S. Hall
>             Fix For: framework-4.0.0
>
>         Attachments: reexport-example.zip
>
>
> As described in
>  http://www.mail-archive.com/[email protected]/msg10677.html [1],
> Require-Bundle with visibility:=reexport does not work transitively in Felix 
> 3.2.2 (cannot comment wrt. other versions, only tested this one).
> Similar issue with Felix M2 plugin described in 
> http://www.mail-archive.com/[email protected]/msg02622.html.
> See attached zip for an example consisting of 4 bundles as described in [1].
> Example works in Equinox, fails to load a.One in Felix 3.2.2.

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

        

Reply via email to