[ 
https://issues.apache.org/jira/browse/FELIX-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12560309#action_12560309
 ] 

Guillaume Sauthier commented on FELIX-466:
------------------------------------------

As a side note, I can add that ContentClassLoader.findResource(String) (the one 
that return only 1 URL, not an enumeration) only look for local content, even 
if the bundle's state is RESOLVED.
I guess it should use the ISearchPolicy too?

> ClassLoader.getResources(String) do not search resources in imports
> -------------------------------------------------------------------
>
>                 Key: FELIX-466
>                 URL: https://issues.apache.org/jira/browse/FELIX-466
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 1.0.0
>            Reporter: Guillaume Sauthier
>
> I've got a third party library that is using the JDK ClassLoader API to load 
> some resources using the getResources(String) method that returns an 
> Enumeration of available resources.
> The ContentClassLoader of Felix do not override this method because it was 
> marked as final in JDK <= 1.4.
> A trick to do that would be to change the 
> ContentClassLoader.findResources(String) (which is called by 
> ClassLoader.getResources(String)) to search the resources using the 
> ISearchPolicy.findResources() so that the imports are searched.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to