typecast errors when arrays are returned
----------------------------------------
Key: XMLRPC-129
URL: http://issues.apache.org/jira/browse/XMLRPC-129
Project: XML-RPC
Issue Type: Bug
Components: Source
Affects Versions: 3.0
Environment: linux, java 1.4.2
Reporter: kamin
Java throws a ClassCastException when an array return value is cast to a typed
array, for XML-RPC functions that return arrays.
For example, the function
public Integer[] foo(Integer[] val){ return val; }
will work fine with the following client code:
Integer[] param = new Integer[5];
Object[] result = (Object[])server.execute("Server.foo", param);
But the following will throw a class cast exception
Integer[] param = new Integer[5];
Integer[] result = (Integer[])server.execute("Server.foo", param);
This error was first documented on the mailing list in this thread:
http://mail-archives.apache.org/mod_mbox/ws-xmlrpc-dev/200609.mbox/[EMAIL
PROTECTED]
The response to the email suggests that this should be easy to fix.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira