johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JOHNZON-48) Complex types in collection with converter
Date Tue, 28 Jul 2015 09:54:04 GMT

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

Romain Manni-Bucau commented on JOHNZON-48:
-------------------------------------------

Applied a little bit different version but reused most of your tests. 

Note: your test model was a bit wrong I think since the converter was on the getter returning
String instead of the list itself (see the pushed version for the diff).

Added the array support as well and eagerly enum caching.

Can you review what I pushed please and give us a small go/no-go?

> Complex types in collection with converter
> ------------------------------------------
>
>                 Key: JOHNZON-48
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-48
>             Project: Johnzon
>          Issue Type: Bug
>          Components: Mapper
>    Affects Versions: 0.9-incubating
>            Reporter: Karl Grosse
>            Priority: Critical
>             Fix For: 0.9-incubating
>
>         Attachments: JOHNZON-48.patch, JOHNZON-48.patch
>
>
> Complex objects in a list get serialized as json object without using registered converters.
This leads to malformed json strings which can't be deserialized if there is no default constructor
available (as is the case with enums). 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message