|DynamicImport-Package creates bundle leak? [message #513908]
||Thu, 11 February 2010 16:10
Registered: February 2010
I've got problem with dynamic loading, and hope that someone of you can clarify this.
The situation is following: There are bundles A and B. A depends on B. B bundle has in its manifest declared DynamicImport-Package: *. After i start both bundles, B does classForName to load class from A, and so Equinox in trun creates dynamic import to A.
Unitl this point i think everything works as intended.
The problem I have is that when i try to update bundle "A" - framework reloads it, but all the "A" classes remains unchanged.
I have done some beduging, and memory dump analysis, so to make long story short - there is code in equinox, which on reload checks whether there are no dependents and if there are any, it puts the bundle for pending removal instead of closing it (which is also could be ok if dependencies are not dynamic).
In my case B is third party bundle and A is mine, so its kind of wierd to lose control over the bundle (by not being able to reload it) because they have declared dynamic import .
Maybe dynamic imports should be handled diferently, for instance - framework could let them go when dependency bundle is reloading.
Is it a bug, or this is intended behaviour or am i missing something here?
Powered by FUDForum
. Page generated in 0.12067 seconds