[
https://issues.apache.org/jira/browse/COLLECTIONS-877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18029085#comment-18029085
]
Adam Rauch commented on COLLECTIONS-877:
----------------------------------------
Confirmed: a local test of the latest 4.6.0 20251010 snapshot build
(commons-collections4-4.6.0-20251010.180013-2.jar) shows that
OrderedProperties.stringPropertyNames() now returns an ordered set.
Thanks for the quick fix!
> OrderedProperties.stringPropertyNames() returns an unordered set
> ----------------------------------------------------------------
>
> Key: COLLECTIONS-877
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-877
> Project: Commons Collections
> Issue Type: Bug
> Components: Properties
> Affects Versions: 4.5.0
> Reporter: Adam Rauch
> Assignee: Gary D. Gregory
> Priority: Minor
> Fix For: 4.6.0
>
>
> OrderedProperties is a handy addition; thanks for that. In my first use, I
> was surprised to see that stringPropertyNames() returns a hash-ordered set
> since the class doesn't override this method. There are other ways to get
> ordered names, of course, but this method is convenient given no need to
> cast. If this is intentional, I would recommend documenting what seems to me
> like an inconsistency.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)