[
https://issues.apache.org/jira/browse/FELIX-1920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard S. Hall resolved FELIX-1920.
------------------------------------
Resolution: Fixed
I committed a fix for this and improved the method a little in the process too.
> RequiredBundle.getRequiringBundles() incorrectly calculates result
> ------------------------------------------------------------------
>
> Key: FELIX-1920
> URL: https://issues.apache.org/jira/browse/FELIX-1920
> Project: Felix
> Issue Type: Bug
> Components: Framework, Specification compliance
> Affects Versions: felix-2.0.2
> Reporter: Richard S. Hall
> Assignee: Richard S. Hall
> Fix For: felix-2.2.0
>
>
> Alan Keane noticed:
> ---
> Is the following a bug?
> Index: RequiredBundleImpl.java
> ===================================================================
> --- RequiredBundleImpl.java (revision 886835)
> +++ RequiredBundleImpl.java (working copy)
> @@ -74,7 +74,7 @@
> IModule[] dependents = ((ModuleImpl)
> modules[modIdx]).getDependentRequirers();
> for (int depIdx = 0; (dependents != null) && (depIdx <
> dependents.length); depIdx++)
> {
> - moduleList.add(dependents[modIdx]);
> + moduleList.add(dependents[depIdx]);
> }
> Thanks,
> Alan
> ---
> It certainly appears to be a bug and clearly could lead to bad results.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.