mehdibouhafs / facebook-java-api

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

Return types of IFacebookRestClient.pages_getInfo incorrect #278

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. attempt to call the IFacebookRestClient.pages_getInfo APIs from a java 
program

What is the expected output? What do you see instead?
Expected output is a JSONArray containing a list of page objects. Instead, 
you get a class cast exception complaining that objects of type JSONArray 
cannot be cast to type JSONObject

What version of the product are you using? On what operating system?
3.0.2

Please provide any additional information below.
Fix is to change the code in IFacebookRestClient that define the 
pages_getInfo methds to define the return type as JSONArray.class rather 
that JSONObject.class (via the FacebookReturnType annotation)

Original issue reported on code.google.com by cdswinde...@gmail.com on 11 Dec 2009 at 3:57

GoogleCodeExporter commented 8 years ago
P.S. I have checked out the source and have built a fix locally, but I'm not 
sure of 
your policies on allowing "outsiders" check in fixes....

Original comment by cdswinde...@gmail.com on 11 Dec 2009 at 3:59

GoogleCodeExporter commented 8 years ago
Could you please put the compiled jars with the fix somewhere for us to 
download? Thanks.

Original comment by hitesh.p...@gmail.com on 5 Feb 2010 at 12:18

GoogleCodeExporter commented 8 years ago
Is there a work around for this or a planned release for the updated code?

Original comment by statep...@gmail.com on 17 Feb 2010 at 2:00

GoogleCodeExporter commented 8 years ago
Any update to this defect

Original comment by mrrohit on 4 Jun 2010 at 7:46