You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Karl Pauls (JIRA)" <ji...@apache.org> on 2019/06/12 21:36:00 UTC

[jira] [Created] (SLING-8485) Feature Launcher should keep order of features

Karl Pauls created SLING-8485:
---------------------------------

             Summary: Feature Launcher should keep order of features
                 Key: SLING-8485
                 URL: https://issues.apache.org/jira/browse/SLING-8485
             Project: Sling
          Issue Type: Bug
          Components: Feature Model
    Affects Versions: Feature Model Launcher 1.0.2
            Reporter: Karl Pauls
            Assignee: Karl Pauls
             Fix For: Feature Model Launcher 1.0.4


As part of SLING-8334 in [0] a "loadedFeatures" HashMap has been introduced. 

That in turn, is now used to get the final list of features from its values() [1]. 

As HashMaps are not ordered the order is effectively unpredictably now. We should fix this and make sure we keep the original order.

[0] https://github.com/apache/sling-org-apache-sling-feature-launcher/commit/4103794287784f51997866715d17466effe9e291
[1] https://github.com/apache/sling-org-apache-sling-feature-launcher/blob/master/src/main/java/org/apache/sling/feature/launcher/impl/FeatureProcessor.java#L104



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)