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

Bug 334591

Summary: OSGi added AdaptPermission
Product: [Eclipse Project] Equinox Reporter: BJ Hargrave <hargrave>
Component: FrameworkAssignee: Thomas Watson <tjwatson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tjwatson
Version: 3.7   
Target Milestone: 3.7 M6   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch to add AdaptPermission support. This patch is based upon the patch for bug 334582.
none
Patch to add AdaptPermission support none

Description BJ Hargrave CLA 2011-01-17 17:09:53 EST
OSGi has defined a new AdaptPermission. The Bundle.adapt method must check this permission before adapting a Bundle object to the requested type.
Comment 1 BJ Hargrave CLA 2011-01-17 18:52:58 EST
Created attachment 186961 [details]
Patch to add AdaptPermission support. This patch is based upon the patch for bug 334582.

The patch adds AdaptPermission and changes to framework to check the permission when Bundle.adapt is called.
Comment 2 BJ Hargrave CLA 2011-01-18 21:16:35 EST
Created attachment 187069 [details]
Patch to add AdaptPermission support

The replacement patch removes reference to the FragmentWirings experiment.
Comment 3 Thomas Watson CLA 2011-02-16 15:51:12 EST
This has been released along with bug334582 from the OSGI_R4_3_Wiring branch.
Comment 4 Thomas Watson CLA 2011-02-16 15:52:19 EST
Comment on attachment 187069 [details]
Patch to add AdaptPermission support

Note that this patch was not used because of other changes to the code that prevented this from applying cleanly.