Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-1920

RequiredBundle.getRequiringBundles() incorrectly calculates result

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            rickhall Richard S. Hall
            rickhall Richard S. Hall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: