Help needed to test RMI patches

Mark Wielaard
Mon Nov 4 12:52:00 GMT 2002


Last week I spend some time on merging the patches that the Orp
developers send for GNU Classpath. A big part of the patch was for our
RMI implementation. I have merged that into GNU Classpath now but I
don't have the time to test these changes myself. I tried to review the
changes as good as I could but this was the first time I ever looked at
the RMI code so I don't claim to understand all changes.

Is there someone that uses RMI and wants to test these changes?
(I can provide prebuild binaries of (lib)gcj for x86 or powerpc)

Do people want me to merge in the changes into libgcj (and review them)?
(Then I will double check the changes and post a real patch.)

ChangeLog follows of the relevant part. There were also changes to add
javax.rmi support but that is useless as long as we don't have
org.omg.CORBA support (Brian Jones is looking into that).

2002-10-31  Mark Wielaard <>:

  Merge Orp RMI patches from Wu Gansha <>

  * java/rmi/ (equals): Check hashcode first.

  * java/rmi/server/ (MyClassLoader): Create/Use
  (loadClass): Take String as codebases.
  (getClassAnnotation): Use MyClassLoader annotations.
  * java/rmi/server/ (UnicastRemoteObject):
  call exportObject(this).

  * gnu/java/rmi/
  (RMIMarshalledObjectOutputStream): set locBytesStream and locStream.
  (setAnnotation): Don't set locBytesStream and locStream.
  (replaceObject): Removed.
  (flush): Don't test locStream.
  (getLocButes): LikeWise.
  * gnu/java/rmi/dgc/ extends UnicastServerRef.
  (leaseCache): New field.
  (dirty): Use leaseCache.
  (LeaseRecord): New inner class.
  * gnu/java/rmi/registry/ (RegistryImpl): Don't
  explicitly call exportObject().
  * gnu/java/rmi/registry/ set useNewInvoke to
  false to communicate with Sun JDK130.
  * gnu/java/rmi/server/ Add CPU comment.
  * gnu/java/rmi/server/
  (UnicastConnectionManager): Removed field.
  * gnu/java/rmi/server/ (replaceObject):
  Use UnicastServer.getExportedRef().
  * gnu/java/rmi/server/ (reviveTime): New field.
  (expireTime): Likewise.
  (disconnect): Call sock.close().
  (isExpired): New method.
  (resetTime): Likewise.
  (run): Use do while loop and catch Exception for discardConnection().
  * gnu/java/rmi/server/ Pool connections.
  * gnu/java/rmi/server/ Lots of changes.
  * gnu/java/rmi/server/ Lots of changes.
  * gnu/java/rmi/server/ (refcache): New field.
  (exportObject): Use refcache.
  (unexportObject): Likewise.
  (getExportedRef): New method.
  * gnu/java/rmi/server/ (UnicastServerRef): New
  (exportObject): Save manager.serverobj.
  (getStub): New method.



More information about the Java mailing list