careldegoede / android-ws-client

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

Infinite loop while parsing response with a superclass #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There is bug while parsing responses where the field to extract is part of a 
superclass.

The method that needs to be fixed is ReflexionHelper#getMethodByName.

I am attaching a little fix that resolves this bug. 

The problem was that you were iterating always the same class without moving to 
the superclass.

My personal opinion is that this is a critical and very serious bug that need 
to be resolved asap. Currently, the library does not support a hierarchy result 
which it is very common scenario.

Original issue reported on code.google.com by sebastia...@gmail.com on 11 Nov 2012 at 5:27

Attachments: