[go: up one dir, main page]

Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Export-Package
icon3.gif  Export-Package [message #552140] Wed, 11 August 2010 04:37 Go to next message
Jingang Zhou is currently offline Jingang ZhouFriend
Messages: 18
Registered: August 2010
Junior Member
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 04:38]

Report message to a moderator

Re: Export-Package [message #552814 is a reply to message #552140] Fri, 13 August 2010 15:50 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
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] Sat, 14 August 2010 01:52 Go to previous messageGo to next message
Jingang Zhou is currently offline Jingang ZhouFriend
Messages: 18
Registered: August 2010
Junior Member
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: Sat, 14 August 2010 01:53]

Report message to a moderator

Re: Export-Package [message #606468 is a reply to message #552814] Sat, 14 August 2010 01:52 Go to previous message
Jingang Zhou is currently offline Jingang ZhouFriend
Messages: 18
Registered: August 2010
Junior Member
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: Thu Dec 12 18:25:43 GMT 2024

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

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

Back to the top