[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-3319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Haderka updated MAGNOLIA-3319:
----------------------------------

    Fix Version/s: 4.3.9
                       (was: 4.3.x)

> Getting children of a content with Comparator makes use of TreeSet
> ------------------------------------------------------------------
>
>                 Key: MAGNOLIA-3319
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3319
>             Project: Magnolia
>          Issue Type: Bug
>      Security Level: Public
>          Components: core
>    Affects Versions: 4.3.7
>            Reporter: Vincent Gombert
>            Assignee: Jan Haderka
>            Priority: Major
>             Fix For: 4.3.9, 4.4.2, 4.5
>
>
> The method DefaultContent.getChildren(Content.ContentFilter, String, 
> Comparator) might not want to use TreeSet for ordering child nodes because 
> TreeSet will consider as equal two nodes which are equivalent for the 
> comparator and then will remove one of them. In other words, if the 
> comparator is not fully discriminant, some nodes will be removed.
> A better way would be to use an ArrayList and sort it with 
> Collections.sort(List, Comparator).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to