* Adapt to strange behaviour of Apache XML-RPC 2.0 to return

exceptions instead of throwing them. Fixes bug 446.
This commit is contained in:
hns 2005-11-17 16:47:15 +00:00
parent dd8ac80a09
commit b64c845258

View file

@ -124,7 +124,11 @@ public class XmlRpcObject extends BaseFunction {
}
Object result = client.execute(method, v);
// FIXME: Apache XML-RPC 2.0 seems to return Exceptions instead of
// throwing them.
if (result instanceof Exception) {
throw (Exception) result;
}
retval.put("result", retval, c.processXmlRpcArgument(result));
} catch (Exception x) {