mx4j/src/tools/mx4j/tools/remote/caucho/burlap BurlapCauchoInput.java,1.3,1.4

Simone Bordet <[email protected]> Mon, 10 Jan 2005 22:20:59 +0000
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/caucho/burlap
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8843/src/tools/mx4j/tools/remote/caucho/burlap

Modified Files:
	BurlapCauchoInput.java 
Log Message:
Fixed bug when deserializing arguments that are whose parameter type is Object, such as JMXAuthenticator.authenticate(Object)

Index: BurlapCauchoInput.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/caucho/burlap/BurlapCauchoInput.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** BurlapCauchoInput.java	13 Nov 2004 16:38:31 -0000	1.3
--- BurlapCauchoInput.java	10 Jan 2005 22:20:56 -0000	1.4
***************
*** 45,53 ****
        {
           input.startReply();
!       }
!       catch (Throwable x)
        {
!          if (x instanceof Exception) throw (Exception)x;
!          throw (Error)x;
        }
     }
--- 45,52 ----
        {
           input.startReply();
!       } catch (Throwable x)
        {
!          if (x instanceof Exception) throw (Exception) x;
!          throw (Error) x;
        }
     }
***************
*** 70,74 ****
     public Object readObject(Class cls) throws IOException
     {
!       return cls == null ? input.readObject() : input.readObject(cls);
     }
  }
--- 69,74 ----
     public Object readObject(Class cls) throws IOException
     {
!       if (cls == null || cls == Object.class) return input.readObject();
!       return input.readObject(cls);
     }
  }



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt