johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JOHNZON-167) Order strategy not applied on Map keys
Date Thu, 12 Apr 2018 11:51:03 GMT

    [ 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)

Mime
View raw message