BuddyPolicy dependents are not sorted [message #1073092] |
Wed, 24 July 2013 01:56  |
Eclipse User |
|
|
|
hi,
i'm debugging a strange problem with BuddyPolicy.
in my target platform i have 5 version of bundle A (version 1.0.0_xx14 - 1.0.0_xx18). Bundle A is also a registered buddy of Bundle B.
Sometimes when Bundle B requests a class from it's buddy A, the class is loaded from an older version of Bundle A.
after some digging in the classes RegisteredPolicy and DependentPolicy i found that the order of the BundleDesriptors in the variable allDependents is random. Thus the class is loaded from the Bundle A that appears first in the list.
i think that the list allDependents should be sorted by version descending (the method toString() of BundleDescriptor could be used).
what do you think about it ? will the additional sorting cause some performance problems ? or is this simply the wrong place to sort ?
thanks
jakob
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03653 seconds