mx4j/src/tools/mx4j/tools/remote/caucho CauchoClientInvoker.java,1.2,1.3

Simone Bordet <[email protected]> Mon, 18 Oct 2004 08:26:36 +0000
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/caucho
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4118/src/tools/mx4j/tools/remote/caucho

Modified Files:
	CauchoClientInvoker.java 
Log Message:
Fixed bug for JMX methods that returned Object.
Since on server side it is written the specific type of the result, I must use the generic readObject(), not the specific one.

Index: CauchoClientInvoker.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/caucho/CauchoClientInvoker.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** CauchoClientInvoker.java	4 Sep 2004 15:45:01 -0000	1.2
--- CauchoClientInvoker.java	18 Oct 2004 08:26:33 -0000	1.3
***************
*** 74,78 ****
                 CauchoInput input = createCauchoInput(is);
                 input.startReply();
!                Object result = input.readObject(method.getReturnType());
                 input.completeReply();
                 return result;
--- 74,78 ----
                 CauchoInput input = createCauchoInput(is);
                 input.startReply();
!                Object result = input.readObject(null);
                 input.completeReply();
                 return result;



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl