[
https://issues.apache.org/jira/browse/JOHNZON-167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16437135#comment-16437135
]
Romain Manni-Bucau commented on JOHNZON-167:
--------------------------------------------
[~anthonyC] yes and no, a lot of maps have an order already (including the
plain hashmap if you want to be picky) so it is already sorted in a more
specific way than a global config so it must be respected. And once again, the
main point is that the spec is about POJO not maps. "A Map is a Pojo" is just
not true. JSON-B doesn't define the map case here - at least I didn't find any
when we created it and re-reading it neither. You are welcomed to do a PR to
handle Map which are not SortedMap appropriately but the spec doesn't require
it.
> Order strategy not applied on Map keys
> --------------------------------------
>
> Key: JOHNZON-167
> URL: https://issues.apache.org/jira/browse/JOHNZON-167
> Project: Johnzon
> Issue Type: Bug
> Components: JSON-B
> Affects Versions: 1.1.7
> Reporter: Soudeh Raeisi
> Priority: Major
> Attachments: JohnzonLibPropertyOrderTest.java
>
>
> Order strategy is not applied globally using withPropertyOrderStrategy
> method of JsonbConfig
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)