ianlee-dev / facebook-java-api

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

users_hasAppPermission throws java.lang.ClassCastException: java.lang.Integer #263

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Upgrade from facebook-java-api-2.1.1 to 3.0.1
2. Call users_hasAppPermission
(com.google.code.facebookapi.Permission.EMAIL,fbID)

What is the expected output? What do you see instead?

Output in earlier API was a boolean response, now I get an exception 
thrown: java.lang.ClassCastException: java.lang.Integer

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

Latest build 3.0.1 running on Windows platform using GRAILS 1.2-M3.

Please provide any additional information below.

This call works perfectly in V2.1.1 but fails in V3.0.1 all I have to do 
to reproduce the error is change the JAR files and then I get the 
exception when I try to call users_hasAppPermission.

Original issue reported on code.google.com by st...@thebroughs.co.uk on 11 Nov 2009 at 6:48

GoogleCodeExporter commented 8 years ago
Looks like this is already fixed in SVN with a change to call "extractBoolean10"
instead of "extractBoolean"... perhaps a 3.0.2 version with the fix is imminent?

Original comment by mrudo...@gmail.com on 14 Nov 2009 at 3:14

GoogleCodeExporter commented 8 years ago
Just tried 3.0.2 and works ok now without throwing an exception.

Original comment by st...@thebroughs.co.uk on 29 Dec 2009 at 8:38