You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2018/04/12 11:51:03 UTC
[jira] [Commented] (JOHNZON-167) Order strategy not applied on Map
keys
[ https://issues.apache.org/jira/browse/JOHNZON-167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16435408#comment-16435408 ]
Mark Struberg commented on JOHNZON-167:
---------------------------------------
Hi Soudeh!
Imo this works fine right now. According to the spec, PropertyOrderStrategy only defines the order for properties. Means fields of a Java class. It does not apply to Map entries.
What about simply using a sorted variant of Map?
> 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)