Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Export-Package
icon3.gif  Export-Package [message #552140] Wed, 11 August 2010 00:37 Go to next message
Eclipse UserFriend
Hi,

Does not PDE support the "exclude" directive in Export-Package header?

I created two plug-ins, say A and B, and create two classes (say, services.ServiceInA.java and services.NonServiceInA.java) in A and a class (say, ClientInB.java) in B. I also exported the pakage services of A and specified as below:
Export-Package: services; exclude:=NonServiceInA


When I import the services pakage in B, I can also see the NonServiceInA class in B, but it shoud not be that according to the OSGi specification, Does anybody know?

Best regards.

Robin

[Updated on: Wed, 11 August 2010 00:38] by Moderator

Re: Export-Package [message #552814 is a reply to message #552140] Fri, 13 August 2010 11:50 Go to previous messageGo to next message
Eclipse UserFriend
The access rules that PDE provides to the compiler are at the package level.
I don't think the JDT compiler supports excluding individual classes. I
believe that the JDT is the one providing all the code completion and
visibility errors/warnings.

So even if it looks fine in the editor and compiles, I would expect it to
not work at runtime assuming the exclude is correct (I didn't realize you
could do that).

-Andrew
zjg_robin wrote:

> Hi,
>
> Does not PDE support the "exclude" directive in Export-Package header?
>
> I created two plug-ins, say A and B, and create two classes (say,
> services.ServiceInA.java and services.NonServiceInA.java) in A and a class
> (say, ClientInB.java) in B. I also exported the pakage services of A and
> specified as below: Export-Package: services; exclude:=NonServiceInA
>
> When I import the services pakage in B, I can also see the NonServiceInA
> class, but it shoud not be that according to the OSGi specification, Does
> anybody know?
>
> Best regards.
>
> Robin
Re: Export-Package [message #552884 is a reply to message #552814] Fri, 13 August 2010 21:52 Go to previous messageGo to next message
Eclipse UserFriend
Hi, Andrew, thank you for your reply.

this issuse is addressed at http://www.eclipse.org/forums/index.php?t=msg&th=173511& amp; amp;start=0&S=c50414fbfee44c9da009e12e7bc4b8ea

and see also :

https://bugs.eclipse.org/bugs/show_bug.cgi?id=120973.

Best Regards.

Robin

[Updated on: Fri, 13 August 2010 21:53] by Moderator

Re: Export-Package [message #606468 is a reply to message #552814] Fri, 13 August 2010 21:52 Go to previous message
Eclipse UserFriend
Hi, Andrew, thank you for your reply.

this issused is addressed at http://www.eclipse.org/forums/index.php?t=msg&th=173511& amp;start=0&S=c50414fbfee44c9da009e12e7bc4b8ea

and see also :

https://bugs.eclipse.org/bugs/show_bug.cgi?id=120973.
Previous Topic:Changing permissions or root files
Next Topic:How to define "dynamic" target definitions?
Goto Forum:
  


Current Time: Sat Jul 19 05:51:56 EDT 2025

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

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

Back to the top