[kaffe] BugReport: in RMI

Jeremy Buisson 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 
return values.

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.

Jeremy Buisson
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: kaffe.rmi.server.RMIObjectOutputStream-remote-references.patch
Url: http://kaffe.org/pipermail/kaffe/attachments/20030723/8d9ac336/attachment-0002.txt 

More information about the kaffe mailing list