[
https://issues.apache.org/jira/browse/FELIX-467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561400#action_12561400
]
Guillaume Sauthier commented on FELIX-467:
------------------------------------------
Thanks for your review Richard
The mean of findResources() in a ClassLoader if to find multiple files at
different location, so I cannot see why I should not be able to browse
resources from the boot class path and imports and local classpath.
You assume that theses resources are classes centric, and in this case I follow
your meaning: If the external resource define a class (that the exporter bundle
probably have access to), how can we be sure that the importer bundle will be
able to load the defined classes.
OK, this will be the scenario if the importer do not have managed that kind of
issue.
And this is an application issue, no ? This is the job of the application to
assume that sometimes, ClassNotFoundExceptions are thrown and that it may be
good to handle them :)
And if the resources are just images or sounds ? Does this mean anything that
the importer bundle will not be able the exporter classes ?
> R4SearchPolicyCore.findResources(String) do not aggregate the Enumeration
> founds
> --------------------------------------------------------------------------------
>
> Key: FELIX-467
> URL: https://issues.apache.org/jira/browse/FELIX-467
> Project: Felix
> Issue Type: Bug
> Components: Framework
> Affects Versions: 1.0.0
> Reporter: Guillaume Sauthier
> Attachments: FELIX-467-tests-bundles.zip, FELIX-467.patch
>
>
> This issue is linked to FELIX-466
> The R4SearchPolicyCore.findResources(String) method just exits early on a
> first hit, and doesn't continue into imported packages.
> It should aggregate the different hits and return all matching resources.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.