Talk:Context Class Loader Enhancements
Buddy Class Loading & Versioning
- How does Buddy class loading works with versioning?
When buddy policies are used a search is done across all found buddies until the class or resource is found. Versions are not considered.
- What happens, if a bundle exists in multiple versions and all version register with a buddy bundle?
The version order currently is not defined for buddy searching. If multiple versions of a buddy exist then it is random which version you will load a given class or resource from.
There is room for improvement here. Suggestions are welcome.