Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 394426

Summary: Remove references to deprecated PackageAdmin.
Product: [ECD] Orion Reporter: Meera Nair <msuknair>
Component: ServerAssignee: Project Inbox <orion.server-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: msuknair
Version: 1.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Meera Nair CLA 2012-11-15 16:30:48 EST
Server files reference  
org.osgi.service.packageadmin.PackageAdmin, 
which is deprecated. Should be replaced with 
org.osgi.framework.wiring package.PackageAdmin.

Files referencing this package are:-
org/eclipse/orion/server/configurator/ConfiguratorActivator.java
org/eclipse/core/internal/runtime/InternalPlatform.java
org/eclipse/core/runtime/Platform.java
org/eclipse/core/tests/harness/BundleTestingHelper.java
org/eclipse/orion/server/tests/ServerTestsActivator.java
Comment 1 Meera Nair CLA 2012-11-15 16:32:39 EST
Investigating.
Comment 2 Meera Nair CLA 2012-11-16 14:29:23 EST
Guess PackageAdmin is left as is for the
 getBundles(String , String) method.
The org.osgi.framework.wiring package does not have a corresponding method.
Comment 3 John Arthorne CLA 2012-11-16 15:05:23 EST
I did look into this and came to the same conclusion. There is no simple replacement for PackageAdmin that I know of. I don't think there is any immediate risk of PackageAdmin being removed from Equinox though. Is there a particular reason you are concerned about this deprecation or just looking for somewhere to get involved?
Comment 4 John Arthorne CLA 2012-11-19 11:46:52 EST
Not planning to do anything here.