achrefB3 / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

Exception on PersonEmails serialization #227

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version of google-api-java-client: 1.4.1-beta?
Version of  google-api-services-buzz-v1: 1.0.0-beta

Java environment: App Engine 1.4.3?

Describe the problem.
If I do a get person using the new version of the java api for Buzz in GAE, I 
get an exception during serialization (see below). The obvious problem is that 
the type for the primary variable in com.google.api.buzz.v1.model.PersonEmails 
is of type String but the Google Buzz API returns a boolean.

"primary: expected type Boolean or boolean but got class java.lang.String for 
field public java.lang.String com.google.api.buzz.v1.model.PersonEmails.primary"

How would you expect it to be fixed?
Make "com.google.api.buzz.v1.model.PersonEmails.primary" a Boolean.

Original issue reported on code.google.com by ullisenm...@gmail.com on 4 Jun 2011 at 7:01

GoogleCodeExporter commented 9 years ago
I'm using the JacksonFactory

Original comment by ullisenm...@gmail.com on 4 Jun 2011 at 7:30

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 6 Jun 2011 at 1:34