You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2018/08/29 15:36:00 UTC

[jira] [Commented] (JOHNZON-184) JsonbAdapter declared through @JsonbTypeAdapter can not convert object properly

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

Mark Struberg commented on JOHNZON-184:
---------------------------------------

Thanks for the report and test case! Should be fixed in trunk now. Can you please retest?

> JsonbAdapter declared through @JsonbTypeAdapter can not convert object properly
> -------------------------------------------------------------------------------
>
>                 Key: JOHNZON-184
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-184
>             Project: Johnzon
>          Issue Type: Bug
>          Components: JSON-B
>    Affects Versions: 1.1.7
>            Reporter: Benoit Prudhomme
>            Assignee: Mark Struberg
>            Priority: Major
>             Fix For: 1.1.9
>
>         Attachments: JohnzonLibTest.java
>
>
> When using the @JsonbTypeAdapter, it seems that a JohnzonJsonbAdapter wraps the JsonbAdapter declared.
> Then, JohnzonJsonbAdapter seems to be used for AdapterKey build instead of the delegated one. 
> Since JohnzonJsonbAdapter is not direclty implementing Adapter.class, no key is built.
> org.apache.johnzon.mapper.MappingParserImpl#getAdapterKey:451
> May this specific case be a sign of a deeper issue ?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)