[kaffe] BugReport: in RMI
jbuisson at irisa.fr
Wed Jul 23 15:17:12 PDT 2003
I found what I think to be a bug in the Kaffe implementation of RMI.
This applies at least to kaffe 1.1.0 and CVS of 2003-07-21.
Return values of remote invocations are systematically serialized. This
does not conform to Sun's specifications: objects that are remote should
be replaced by the stub. This have been made for parameters, but not for
In order to fix this, the Unicast.Server class can be modified, and
especially its incomingMessageCall(UnicastConnection) method. I think a
better solution would be to modify the RMIObjectOutputStream class and
to use the object replacement mechanism of the ObjectOutputStream class.
I join a patch file for
libraries/javalib/kaffe/rmi/server/RMIObjectOutputStream.java . Of
course, the object replacement that reside in the UnicastRef class,
method invokeCommon(Remote, Method, Object, int, long) can be removed
since it is handled by the RMIObjectOutputStream.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the kaffe