Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334591 - OSGi added AdaptPermission
Summary: OSGi added AdaptPermission
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.7 M6   Edit
Assignee: Thomas Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-17 17:09 EST by BJ Hargrave CLA
Modified: 2011-02-16 15:52 EST (History)
1 user (show)

See Also:


Attachments
Patch to add AdaptPermission support. This patch is based upon the patch for bug 334582. (25.12 KB, patch)
2011-01-17 18:52 EST, BJ Hargrave CLA
no flags Details | Diff
Patch to add AdaptPermission support (24.33 KB, patch)
2011-01-18 21:16 EST, BJ Hargrave CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.