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-142) Mapper should ignore final fields
Date Thu, 02 Nov 2017 08:57:02 GMT

    [ https://issues.apache.org/jira/browse/JOHNZON-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16235418#comment-16235418
] 

Mark Struberg commented on JOHNZON-142:
---------------------------------------

To make this more clear: 
If the VisibilityStrategy enables a final field then it only gets used in Object->JSON
but it is not being set into the object in JSON->Object.
For such a final field one usually has a constructor with a JohnzonConverter etc.

We might further think if we want to support the following Java SE annotations:
* java.beans.ConstructorProperties


> Mapper should ignore final fields
> ---------------------------------
>
>                 Key: JOHNZON-142
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-142
>             Project: Johnzon
>          Issue Type: Bug
>          Components: Mapper
>    Affects Versions: 1.1.4
>            Reporter: Reinhard Sandtner
>            Priority: Major
>             Fix For: 1.1.5
>
>
> mapper should not write final fields



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message