ObjectConverter and lists

2017-01-27 Thread Romain Manni-Bucau
Hi guys,

implementing a bridge between @XmlElements and johnzon serialization i
realized we don't support list for ObjectConverters.

The workaround I used was to setReadAttributeBeforeWrite(true), use
a TypeAwareAdapter, use a custom type  Wrapper {type, value} and ensure the
ordering of the serialization serializes type before value. This is a lot
of work and not guess-able. With an ObjectConverter it should be trivial
but we don't support lists.

Do we want to implement that? If so anyone motivated? (can do next week but
also think it is a way to enter the code if any of you wants).

Just shout a "I'll do it" if you want. In any case I"ll be happy to help to
guide or even do it, just let me know.

Enjoy your week-end ;)

Romain Manni-Bucau
@rmannibucau  |  Blog
 | Old Blog
 | Github  |
LinkedIn  | JavaEE Factory



[jira] [Resolved] (JOHNZON-102) Composite access mode (field+method) can mess up converters and duplicates reference

2017-01-27 Thread Romain Manni-Bucau (JIRA)

 [ 
https://issues.apache.org/jira/browse/JOHNZON-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Romain Manni-Bucau resolved JOHNZON-102.

Resolution: Fixed

> Composite access mode (field+method) can mess up converters and duplicates 
> reference
> 
>
> Key: JOHNZON-102
> URL: https://issues.apache.org/jira/browse/JOHNZON-102
> Project: Johnzon
>  Issue Type: Bug
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
> Fix For: 1.0.0
>
>




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


[jira] [Updated] (JOHNZON-102) Composite access mode (field+method) can mess up converters and duplicates reference

2017-01-27 Thread Romain Manni-Bucau (JIRA)

 [ 
https://issues.apache.org/jira/browse/JOHNZON-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Romain Manni-Bucau updated JOHNZON-102:
---
Summary: Composite access mode (field+method) can mess up converters and 
duplicates reference  (was: Composite access mode (field+method) can mess up 
converters)

> Composite access mode (field+method) can mess up converters and duplicates 
> reference
> 
>
> Key: JOHNZON-102
> URL: https://issues.apache.org/jira/browse/JOHNZON-102
> Project: Johnzon
>  Issue Type: Bug
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
> Fix For: 1.0.0
>
>




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


[jira] [Created] (JOHNZON-102) Composite access mode (field+method) can mess up converters

2017-01-27 Thread Romain Manni-Bucau (JIRA)
Romain Manni-Bucau created JOHNZON-102:
--

 Summary: Composite access mode (field+method) can mess up 
converters
 Key: JOHNZON-102
 URL: https://issues.apache.org/jira/browse/JOHNZON-102
 Project: Johnzon
  Issue Type: Bug
Reporter: Romain Manni-Bucau
Assignee: Romain Manni-Bucau
 Fix For: 1.0.0






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