Uploaded image for project: 'JBoss Modules'
  1. JBoss Modules
  2. MODULES-15

Non deterministic order of dependencies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Beta2
    • None
    • None
    • None

      ModuleSpec.Builder uses

      private final Set<DependencySpec.Builder> dependencyBuilders = new HashSet<DependencySpec.Builder>();

      which causes a random order of dependencies in the Module

      A client cannot make deterministic decisions on the order of dependencies.

      In OSGi every bundle has a dependency on the Framework bundle which must be considered first.

      Also consider the general case where multiple dependent modules export the same path.

      I suggest to change this to a List also because on the ModuleSpec the dependencies are handled as array anyway.

            dlloyd@redhat.com David Lloyd
            tdiesler@redhat.com Thomas Diesler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: