You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ia...@apache.org on 2004/09/02 17:20:29 UTC
cvs commit: ws-axis/java/src/org/apache/axis/client AxisClientProxy.java
ias 2004/09/02 08:20:29
Modified: java/src/org/apache/axis/client AxisClientProxy.java
Log:
Patch for delegating all Object methods to its internal Call instance thanks to Guillaume Sauthier.
Revision Changes Path
1.11 +4 -0 ws-axis/java/src/org/apache/axis/client/AxisClientProxy.java
Index: AxisClientProxy.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/client/AxisClientProxy.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- AxisClientProxy.java 26 Aug 2004 18:48:10 -0000 1.10
+++ AxisClientProxy.java 2 Sep 2004 15:20:29 -0000 1.11
@@ -139,6 +139,7 @@
*/
public Object invoke(Object o, Method method, Object[] objects)
throws Throwable {
+ // first see if we invoke Stub methods
if (method.getName().equals("_setProperty")) {
call.setProperty((String) objects[0], objects[1]);
return null;
@@ -146,6 +147,9 @@
return call.getProperty((String) objects[0]);
} else if (method.getName().equals("_getPropertyNames")) {
return call.getPropertyNames();
+ } else if (Object.class.equals(method.getDeclaringClass())) {
+ // if we invoke basic Object methods : delegate to Call instance
+ return method.invoke(call, objects);
} else {
Object outValue;
Object[] paramsCall;