Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1387

Make equals and hashCode comparisons within the header, clause, and parameter hierarchies based on equivalency rather than string equals.

Details

    Description

      Currently the org.apache.aries.subsystem.core.archive.SubsystemContentHeader class (line 210) and other headers classes uses a HashSet in order to hold its clauses.

      HashSet doesn't ensure the order of its items and then its impossible to have a reproducible build of any manifest file. As the SubsystemManifest class doesn't provide a equals() method, we can't compare a generated manifest file with any template in a test, it will fail.

      The propose it to change the used HashSet for the LinkedHashSet class.

      Attachments

        Issue Links

          Activity

            No work has yet been logged on this issue.

            People

              jwross@us.ibm.com John Ross
              cvgaviao Cristiano Gavião
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: