jnan77 / jsonrpc4j

Automatically exported from code.google.com/p/jsonrpc4j
0 stars 0 forks source link

Wrong serialization of parameters #49

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a service (+ interface) with a method needing an object of an 
abstract class as parameter.
2. Create a client with the ProxyUtil and call the method with a concrete 
subclass.

What is the expected output? What do you see instead?
The method should be called but instead exceptions are thrown. The reason is a 
'wrong' serialization because the parameters are wrapped into an object array.

Please provide any additional information below.
I opened a question at http://stackoverflow.com/q/14631502/2021412 showing more 
details and an example. I solved the issue by patching (see attachment) the 
JsonRpcClient - JUnit tests work fine, but i do not know if it breaks something 
for other use cases.

Original issue reported on code.google.com by like.n...@gmail.com on 1 Feb 2013 at 12:22

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks, patch applied and same logic applied to collections.

Original comment by brian.di...@gmail.com on 16 Feb 2013 at 8:16

GoogleCodeExporter commented 8 years ago

Original comment by brian.di...@gmail.com on 16 Feb 2013 at 8:17