[jboss-jira] [JBoss JIRA] (DROOLS-4872) "customSerializationMapper" in JSONMarshaller.configureMarshaller() doesn't respect JSONMarshallerExtensions

Kris Verlaenen (Jira) issues at jboss.org
Mon Dec 30 05:54:35 EST 2019


     [ https://issues.redhat.com/browse/DROOLS-4872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kris Verlaenen updated DROOLS-4872:
-----------------------------------
    Sprint: 2019 Week 50-52 (from Dec 9), 2020 Week 01-03 (from Dec 30)  (was: 2019 Week 50-52 (from Dec 9))


> "customSerializationMapper" in JSONMarshaller.configureMarshaller() doesn't respect JSONMarshallerExtensions
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-4872
>                 URL: https://issues.redhat.com/browse/DROOLS-4872
>             Project: Drools
>          Issue Type: Component Upgrade
>          Components: kie server
>    Affects Versions: 7.29.0.Final, 7.30.0.Final, 7.31.0.Final
>            Reporter: Petar Tahchiev
>            Assignee: Toshiya Kobayashi
>            Priority: Major
>
> Hello,
> as discussed here:
> https://groups.google.com/forum/#!topic/drools-setup/85k05vo0Ix8
> I'm trying to configure the JSONMarshaller so I can serialize/deserialize objects of type {{javax.money.MonetaryAmount}}, however even though I register my own {{JSONMarshallerExtension}} seems like the conversion is handled by the {{customSerializationMapper}} in {{JSONMarshaller.configureMarshaller()}} and this mapper is not passed to the extension so there's no way I can configure it. This leads to the attributes of type {{MonetaryAmount}} being serialized in a wrong way (not using any modules registered through the {{JSONMarshallerExtension}}.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list