You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Gareth Western (JIRA)" <ji...@apache.org> on 2015/02/24 12:57:04 UTC

[jira] [Updated] (CAMEL-8399) Support setMode in JsonDataFormat

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

Gareth Western updated CAMEL-8399:
----------------------------------
    Description: 
CAMEL-7592 introduced the ability to customise the XStream mode, however org.apache.camel.dataformat.xstream.JsonDataFormat#createXStream still sets the mode explicitly to NO_REFERENCES.

I think someone just has to update the method to do the following instead:
{code}
                if (getMode() != null) {
                    xs.setMode(getModeFromString(getMode()));
                }
{code}

  was:
CAMEL-7592 introduced the ability to customise the XStream mode, however org.apache.camel.dataformat.xstream.JsonDataFormat#createXStream still sets the mode explicitly to NO_REFERENCES.

I think someone just has to update the method to do the following instead:
{code}
                if (getMode() != null) {
                    xstream.setMode(getModeFromString(getMode()));
                }
{code}


> Support setMode in JsonDataFormat
> ---------------------------------
>
>                 Key: CAMEL-8399
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8399
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-xstream
>    Affects Versions: 2.14.1
>            Reporter: Gareth Western
>            Priority: Minor
>
> CAMEL-7592 introduced the ability to customise the XStream mode, however org.apache.camel.dataformat.xstream.JsonDataFormat#createXStream still sets the mode explicitly to NO_REFERENCES.
> I think someone just has to update the method to do the following instead:
> {code}
>                 if (getMode() != null) {
>                     xs.setMode(getModeFromString(getMode()));
>                 }
> {code}



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