Community
Participate
Working Groups
The javadoc for the find book says BundleContext.getBundle(id) *is* governed by the find hook.
Created attachment 185265 [details] patch This patch fixes the issue. The actual behavior is a simple fix. But the ramifications ended up being a bit tricky. There was quite a few places in the framework that assumed the system BundleContext.getBundle(id) would return a bundle object without any chance of a find hook filtering it out. This patch fixes all places in the framework that called BC.getBundle(id) except for the framework console commands and the composite support. Eventually the composite support will go away. The framework console support we want to allow filtering. I still have a bit of code that makes the system bundle context special WRT to BC.getBundle(id). My fear is that equinox framework hook implementations may be depending on the same behavior. I don't want to all of a sudden break them.
Patch released.