careldegoede / android-ws-client

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

Filling Response-Beans via ReflectionHelper will cause an infinite loop #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Using a webservice call whose return type is a bean with at least one 
supertype bean.

What is the expected output? What do you see instead?
Expecting a correctly filled bean. Instead the service-call doesn't return from 
an infinite loop inside ReflectionHelper (see below).

What version of the product are you using? On what operating system?
android-ws-client 1.2.0, Apache CXF 2.6.1

Please provide any additional information below.
ReflectionHelper#getMethodByName(Class, String, Class) is looping forever 
because of a buggy for-loop. Instead of instanceClass.getDeclaredMethod(...) it 
must be superClass.getDeclaredMethod(...).

Original issue reported on code.google.com by marmissf on 15 Aug 2012 at 9:23