Skip to main content



      Home
Home » Eclipse Projects » Equinox » exporting dynamic-imported packages
exporting dynamic-imported packages [message #83326] Thu, 15 February 2007 05:05 Go to next message
Eclipse UserFriend
Originally posted by: amottadelli_NO_SPAM.it.ibm.com

Hi,
is it legal to Export-Package a package imported via Dynamic-ImportPackage?

When I try to do so, Eclipse complains that the exported package does
not exist in the plugin.

Strangely, if I Provide-Package the package, Eclipse does not complain
and everything works.

This difference in behaviour between Provide and Export package is due
to some semantic difference or is just a bug?

Thanks,
Sandro
Re: exporting dynamic-imported packages [message #84056 is a reply to message #83326] Wed, 14 March 2007 15:25 Go to previous message
Eclipse UserFriend
The OSGi specification does not allow you to export a package which you
got from Import-Package (or DynamicImport-Package). Provide-Package is
not part of the OSGi specification and is not recommended in Eclipse.
It is only there to support bundles from Eclipse 3.0 that may have been
using it.

I'm surprised that Provide-Package actually allows you to re-export the
package you import. I would consider that a bug.

Tom
Previous Topic:Bundle Context and depricated classes
Next Topic:Application is not starting since moving to M5
Goto Forum:
  


Current Time: Tue Jun 24 16:51:01 EDT 2025

Powered by FUDForum. Page generated in 0.06255 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top