johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <>
Subject [jira] [Commented] (JOHNZON-48) Complex types in collection with converter
Date Sat, 04 Jul 2015 17:02:04 GMT


Romain Manni-Bucau commented on JOHNZON-48:

Right, sorry was super blury when I reread it.

My point was: we can keep the converter in our mapping model and avoid a lookup for each call,
also the very implicit meaning was when building the model itself we should check for @JohnzonConverter.
Ifit exists and type of the converter is the type of the argument of the parameterized type
then we use it for items.

> Complex types in collection with converter
> ------------------------------------------
>                 Key: JOHNZON-48
>                 URL:
>             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
> 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

View raw message