sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SLING-8485) Feature Launcher should keep order of features
Date Thu, 13 Jun 2019 05:51:00 GMT

    [ https://issues.apache.org/jira/browse/SLING-8485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16862734#comment-16862734
] 

Carsten Ziegeler commented on SLING-8485:
-----------------------------------------

Added an additional fix in e65f12d to keep the original order

> 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
>            Priority: Major
>             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)

Mime
View raw message