felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (JIRA)" <j...@apache.org>
Subject [jira] Created: (FELIX-1920) RequiredBundle.getRequiringBundles() incorrectly calculates result
Date Fri, 04 Dec 2009 17:32:20 GMT
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.


Mime
View raw message