[
https://issues.apache.org/jira/browse/SHINDIG-617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633991#action_12633991
]
Dave Johnson commented on SHINDIG-617:
--------------------------------------
Thanks for looking into this.
> can you write a failing test case?
Yep, or I can make a slight mod to your test case. Your case only tests Integer
and Boolean and not primitive fields. If you add isViewer, which is a boolean
and not a Boolean, to jsonPerson and the test will fail.
String jsonPerson = "{age : '10', hasApp : 'true', isViewer: 'true'}";
- Dave
> Add support for integer and boolean primitives to BeanJsonConverter
> -------------------------------------------------------------------
>
> Key: SHINDIG-617
> URL: https://issues.apache.org/jira/browse/SHINDIG-617
> Project: Shindig
> Issue Type: Improvement
> Components: RESTful API (Java)
> Reporter: Dave Johnson
> Priority: Minor
> Attachments: fix-beanjsonconv-bug.patch
>
>
> The JSON to Java object conversion does not support primitive integers or
> booleans.
> No sure why this has not been noticed before, perhaps it is because Shindig
> never converts JSON to Person?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.