From ac4e78cb173f3fb9309add7c37dae24da31f275e Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 8 Nov 2007 11:03:41 +0000 Subject: [PATCH] * Allow HopObjects to be used as arguments in XML-RPC calls, interpreting them as dicts and ignoring child nodes. Resolves bug #345 --- src/helma/scripting/rhino/RhinoCore.java | 87 ++++++++++++++---------- 1 file changed, 50 insertions(+), 37 deletions(-) diff --git a/src/helma/scripting/rhino/RhinoCore.java b/src/helma/scripting/rhino/RhinoCore.java index 27a64375..6aa531eb 100644 --- a/src/helma/scripting/rhino/RhinoCore.java +++ b/src/helma/scripting/rhino/RhinoCore.java @@ -477,49 +477,49 @@ public final class RhinoCore implements ScopeProvider { * Convert an input argument from Java to the scripting runtime * representation. */ - public Object processXmlRpcArgument (Object what) { - if (what == null) + public Object processXmlRpcArgument (Object arg) { + if (arg == null) return null; - if (what instanceof Vector) { - Vector v = (Vector) what; + if (arg instanceof Vector) { + Vector v = (Vector) arg; Object[] a = v.toArray(); for (int i=0; i