Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-25317

[GSS](7.4.z) WFCORE-6442 - ModuleSpecification discards dependency information


      The fix for JBEAP-24443 assumes that two ModuleDependency objects with the same ModuleIdentifier are equal, and thus ModuleSpecification discards any provided ModuleDependency if it already has one for the same identifier. But that is not a valid assumption, as different artifacts in a deployment can have their own dependency information. For example an ear's root MANIFEST.mf can have Dependencies: foo while it's lib/alib.jar's MANIFEST.mf can have Dependencies: foo export services metainf. The JBEAP-24443 changes results in discarding important data.

      A possible fix for this is to make ModuleDependency and FilterSpecification override equals and hashcode and check for duplicate ModuleDependencies instead of duplicate identifiers.

            rhn-engineering-lgao Lin Gao
            bstansbe@redhat.com Brian Stansberry
            0 Vote for this issue
            6 Start watching this issue