Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.8
-
None
Description
A number of 3rd party libraries expect that URLs returned by ClassLoader.getResource() or ClassLoader.getResources() are either "jar" or "file" type of URLs. In OSGi ClassLoader.getResource() or ClassLoader.getResources() return a "bundle" URL which is an OSGi framework specific URL.
It would be nice to have a Bundle ClassLoader implementation that could automatically return the "jar" or "file" URLs.
On Equinox it is possible to translate the "bundle" URLs into "jar" URLs using the URLConverter service.